From: Alan Modra Date: Sun, 27 May 2001 12:17:38 +0000 (+0000) Subject: * write.c (relax_segment ): Check the section of a X-Git-Tag: dberlin-typesystem-branchpoint~423 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9e40345d0e80b6436eaf7607400c76ea64d6978f;p=external%2Fbinutils.git * write.c (relax_segment ): 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. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 8564e7f..1a623ad 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,10 @@ 2001-05-27 Alan Modra + * write.c (relax_segment ): 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. diff --git a/gas/write.c b/gas/write.c index 4ca8a25..ff63836 100644 --- a/gas/write.c +++ b/gas/write.c @@ -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)) {