aboutsummaryrefslogtreecommitdiff
path: root/gas/write.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2001-05-27 12:17:38 +0000
committerAlan Modra <amodra@gmail.com>2001-05-27 12:17:38 +0000
commit9e40345d0e80b6436eaf7607400c76ea64d6978f (patch)
treed84002a15d4837b81e819751e31426ee904d46c6 /gas/write.c
parentfbe572f93e9b2403e76e0bf809ae1706a56c9758 (diff)
downloadgdb-9e40345d0e80b6436eaf7607400c76ea64d6978f.zip
gdb-9e40345d0e80b6436eaf7607400c76ea64d6978f.tar.gz
gdb-9e40345d0e80b6436eaf7607400c76ea64d6978f.tar.bz2
* 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.
Diffstat (limited to 'gas/write.c')
-rw-r--r--gas/write.c2
1 files changed, 1 insertions, 1 deletions
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))
{