summaryrefslogtreecommitdiff
path: root/gas/write.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2002-11-20 12:56:01 +0000
committerAlan Modra <amodra@bigpond.net.au>2002-11-20 12:56:01 +0000
commit1e56e6242c6bb366365a878459691d08bd911aa3 (patch)
treea14dac750d11344f94b4826f4b94285aa79db2ca /gas/write.c
parentb4606e366e6353f2ab37129cc931e27c302a23f7 (diff)
downloadbinutils-redhat-1e56e6242c6bb366365a878459691d08bd911aa3.tar.gz
* 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 73eb793e1f..b1c27d78b5 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. */