summaryrefslogtreecommitdiffstats
path: root/gas/subsegs.c
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1992-06-09 19:36:49 +0000
committerSteve Chamberlain <sac@cygnus>1992-06-09 19:36:49 +0000
commit65bfcf2e612af31e16b067ffb4113b6b293f041e (patch)
treeca17e5eb06161371f31b9ac4903f848c55460a02 /gas/subsegs.c
parenta1765cf0fef298858cfe669e0b8143dba90b4dd1 (diff)
downloadppe42-binutils-65bfcf2e612af31e16b067ffb4113b6b293f041e.tar.gz
ppe42-binutils-65bfcf2e612af31e16b067ffb4113b6b293f041e.zip
* subsegs.c (subsegs_begin): create bss0_frchainP in the same was
as data0_frchainP * write.c (write_object_file): various changes to handle data in the BSS segment in much the same was as stuff in the DATA segment. * subsegs.c (subseg_change): allow and handle a change into SEG_BSS.
Diffstat (limited to 'gas/subsegs.c')
-rw-r--r--gas/subsegs.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gas/subsegs.c b/gas/subsegs.c
index e883e29ca0..5ef9570df7 100644
--- a/gas/subsegs.c
+++ b/gas/subsegs.c
@@ -35,7 +35,8 @@ frchainS* frchain_root,
#else
frchainS* frchain_root,
* frchain_now, /* Commented in "subsegs.h". */
- * data0_frchainP;
+ * data0_frchainP,
+ * bss0_frchainP;
#endif
char * const /* in: segT out: char* */
@@ -108,6 +109,10 @@ void
#else
subseg_new (SEG_DATA, 0); /* .data 0 */
data0_frchainP = frchain_now;
+
+ subseg_new (SEG_BSS, 0);
+ bss0_frchainP = frchain_now;
+
#endif
}
OpenPOWER on IntegriCloud