-extern frchainS * frchain_root; /* NULL means no frchains yet. */
-/* all subsegments' chains hang off here */
-
-extern frchainS * frchain_now;
-/* Frchain we are assembling into now */
-/* That is, the current segment's frag */
-/* chain, even if it contains no (complete) */
-/* frags. */
-
-
-#ifdef MANY_SEGMENTS
-typedef struct
-{
- frchainS *frchainP;
- int hadone;
- int user_stuff;
- /* struct frag *frag_root;*/
- /* struct frag *last_frag;*/
- fixS *fix_root;
- fixS *fix_tail;
- struct internal_scnhdr scnhdr;
- symbolS *dot;
-
- struct lineno_list *lineno_list_head;
- struct lineno_list *lineno_list_tail;
-
-} segment_info_type;
-segment_info_type segment_info[];
-#else
-extern frchainS * data0_frchainP;
-/* Sentinel for frchain crawling. */
-/* Points to the 1st data-segment frchain. */
-/* (Which is pointed to by the last text- */
-/* segment frchain.) */
+/* Frchain we are assembling into now. That is, the current segment's
+ frag chain, even if it contains no (complete) frags. */
+extern frchainS *frchain_now;
+
+typedef struct segment_info_struct {
+ frchainS *frchainP;
+ unsigned int hadone : 1;
+
+ /* This field is set if this is a .bss section which does not really
+ have any contents. Once upon a time a .bss section did not have
+ any frags, but that is no longer true. This field prevent the
+ SEC_HAS_CONTENTS flag from being set for the section even if
+ there are frags. */
+ unsigned int bss : 1;
+
+ int user_stuff;
+
+ /* Fixups for this segment. This is only valid after the frchains
+ are run together. */
+ fixS *fix_root;
+ fixS *fix_tail;
+
+ symbolS *dot;