* write.c (relax_segment <rs_space>): Check the section of a
authorAlan Modra <amodra@gmail.com>
Sun, 27 May 2001 12:17:38 +0000 (12:17 +0000)
committerAlan Modra <amodra@gmail.com>
Sun, 27 May 2001 12:17:38 +0000 (12:17 +0000)
symbol to determine whether it is absolute rather than comparing
its frag against zero_address_frag as listings play tricks with
frags.

gas/ChangeLog
gas/write.c

index 8564e7fdaec3ea2aa90e6bb0d2719f6eff424b45..1a623ad9dd4b6ea2c01c11074a5408fbedda2cc1 100644 (file)
@@ -1,5 +1,10 @@
 2001-05-27  Alan Modra  <amodra@one.net.au>
 
+       * write.c (relax_segment <rs_space>): Check the section of a
+       symbol to determine whether it is absolute rather than comparing
+       its frag against zero_address_frag as listings play tricks with
+       frags.
+
        * config/tc-m68k.c (md_assemble): Ensure variable part of frag is
        allocated in the same chunk as the fixed part.
 
index 4ca8a253ef0b59bdf8e0d50831c67b6e7ca96fb4..ff63836e0934900a142d8d6b5b734f8b185385a1 100644 (file)
@@ -2459,7 +2459,7 @@ relax_segment (segment_frag_root, segment)
                    offsetT amount;
 
                    amount = S_GET_VALUE (symbolP);
-                   if (symbol_get_frag (symbolP) != &zero_address_frag
+                   if (S_GET_SEGMENT (symbolP) != absolute_section
                        || S_IS_COMMON (symbolP)
                        || ! S_IS_DEFINED (symbolP))
                      {