From 353903054afcd43712f5009d05d0c548146417aa Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 20 Nov 2002 13:11:01 +0000 Subject: [PATCH] * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with fx_subsy non-NULL. --- gas/ChangeLog | 5 +++++ gas/write.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 0b8750c3c6d..94223d03ce8 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2002-11-20 Alan Modra + + * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with + fx_subsy non-NULL. + 2002-11-19 Richard Henderson * config/obj-elf.c (obj_elf_visibility): Overwrite only the diff --git a/gas/write.c b/gas/write.c index 323b95f83ce..f8120cbc7c7 100644 --- a/gas/write.c +++ b/gas/write.c @@ -881,7 +881,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) && fixp->fx_offset) + if ((symsec->flags & SEC_MERGE) != 0 + && (fixp->fx_offset != 0 || fixp->fx_subsy != NULL)) { symbol_mark_used_in_reloc (fixp->fx_addsy); goto done; -- 2.47.3