From 04e8d2d39fd88a209343ff972e63e397eeb4aa24 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Fri, 7 Sep 2001 22:41:03 +0000 Subject: [PATCH] * config/tc-sparc.c (md_apply_fix3): Handle relocs against SEC_MERGE section symbols the same way as externs. --- gas/ChangeLog | 5 +++++ gas/config/tc-sparc.c | 1 + 2 files changed, 6 insertions(+) diff --git a/gas/ChangeLog b/gas/ChangeLog index 508ac0bec8..d55b201208 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2001-09-08 Jakub Jelinek + + * config/tc-sparc.c (md_apply_fix3): Handle relocs against SEC_MERGE + section symbols the same way as externs. + 2001-09-07 Thiemo Seufer * config/tc-mips.c (s_mipsset): Reallow unrestricted use of .set mipsX diff --git a/gas/config/tc-sparc.c b/gas/config/tc-sparc.c index a0a1d31b4e..33ea071a0d 100644 --- a/gas/config/tc-sparc.c +++ b/gas/config/tc-sparc.c @@ -2908,6 +2908,7 @@ md_apply_fix3 (fixP, value, segment) if (symbol_used_in_reloc_p (fixP->fx_addsy) && (S_IS_EXTERNAL (fixP->fx_addsy) || S_IS_WEAK (fixP->fx_addsy) + || (S_GET_SEGMENT (fixP->fx_addsy)->flags & SEC_MERGE) || (sparc_pic_code && ! fixP->fx_pcrel) || (S_GET_SEGMENT (fixP->fx_addsy) != segment && ((bfd_get_section_flags (stdoutput, -- 2.11.0