* write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with

fx_subsy non-NULL.
This commit is contained in:
Alan Modra 2002-11-20 12:56:01 +00:00
parent 4e87b8328c
commit 5045ec7ae4
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2002-11-20 Alan Modra <amodra@bigpond.net.au>
* write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
fx_subsy non-NULL.
2002-11-19 Richard Henderson <rth@redhat.com>
* config/obj-elf.c (obj_elf_visibility): Overwrite only the

View file

@ -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. */