aboutsummaryrefslogtreecommitdiff
path: root/gas/write.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2002-11-20 12:56:01 +0000
committerAlan Modra <amodra@gmail.com>2002-11-20 12:56:01 +0000
commit5045ec7ae462b22b27ce2f5401c3200e0c481822 (patch)
tree7fec779a00f6225b9b879f0892fcb872f2ae64b2 /gas/write.c
parent4e87b8328c4d70b7b41de90b608c7181afd8751b (diff)
downloadgdb-5045ec7ae462b22b27ce2f5401c3200e0c481822.zip
gdb-5045ec7ae462b22b27ce2f5401c3200e0c481822.tar.gz
gdb-5045ec7ae462b22b27ce2f5401c3200e0c481822.tar.bz2
* write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
fx_subsy non-NULL.
Diffstat (limited to 'gas/write.c')
-rw-r--r--gas/write.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gas/write.c b/gas/write.c
index 73eb793..b1c27d7 100644
--- a/gas/write.c
+++ b/gas/write.c
@@ -868,7 +868,8 @@ adjust_reloc_syms (abfd, sec, xxx)
/* Never adjust a reloc against local symbol in a merge section
with non-zero addend. */
- if ((symsec->flags & SEC_MERGE) != 0 && fixp->fx_offset != 0)
+ if ((symsec->flags & SEC_MERGE) != 0
+ && (fixp->fx_offset != 0 || fixp->fx_subsy != NULL))
continue;
/* Never adjust a reloc against TLS local symbol. */