From 0f8e50bb76b183bfa1f63d44c7dd3061e9ef0824 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Wed, 16 Oct 1996 17:32:39 +0000 Subject: [PATCH] * write.c (fixup_segment): Don't add symbol value to addend if TC_V850 and OBJ_ELF. * config/tc-v850.h (tc_fix_adjustable): Don't adjust any pc-relative fixups. Fixing more failures in the g++ testsuite. --- gas/ChangeLog | 13 ++++++++++++- gas/config/tc-v850.c | 6 ++---- gas/config/tc-v850.h | 3 +-- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index eb429124482..6ed998ab6c7 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,16 @@ start-sanitize-v850 -Wed Oct 16 00:19:00 1996 Jeffrey A Law (law@cygnus.com) +Wed Oct 16 11:28:31 1996 Jeffrey A Law (law@cygnus.com) + + * write.c (fixup_segment): Don't add symbol value to addend if + TC_V850 and OBJ_ELF. + * config/tc-v850.h (tc_fix_adjustable): Don't adjust any + pc-relative fixups. + + * config/tc-v850.c (md_pcrel_from): Undo yesterday's changes. + (md_pcrel_from_section): Likewise. + * config/tc-v850.h (MD_PCREL_FROM_SECTION): Likewise. + +Tue Oct 15 23:19:00 1996 Jeffrey A Law (law@cygnus.com) * config/tc-v850.c (md_pcrel_from): Delete unused function. (md_pcrel_from_section): New function. diff --git a/gas/config/tc-v850.c b/gas/config/tc-v850.c index e2c3f56f663..f1c8d7c7c9a 100644 --- a/gas/config/tc-v850.c +++ b/gas/config/tc-v850.c @@ -814,14 +814,12 @@ md_estimate_size_before_relax (fragp, seg) } long -md_pcrel_from_section (fixp, sec) +md_pcrel_from (fixp) fixS *fixp; - segT sec; { /* If the symbol is undefined, or in a section other than our own, then let the linker figure it out. */ - if ((fixp->fx_addsy != (symbolS *) NULL && ! S_IS_DEFINED (fixp->fx_addsy)) - || (fixp->fx_addsy && S_GET_SEGMENT (fixp->fx_addsy) != sec)) + if (fixp->fx_addsy != (symbolS *) NULL && ! S_IS_DEFINED (fixp->fx_addsy)) { /* The symbol is undefined. Let the linker figure it out. */ return 0; diff --git a/gas/config/tc-v850.h b/gas/config/tc-v850.h index dac6f25a3ad..3ea07f7ded5 100644 --- a/gas/config/tc-v850.h +++ b/gas/config/tc-v850.h @@ -47,5 +47,4 @@ #define md_number_to_chars number_to_chars_littleendian -/* call md_pcrel_from_section, not md_pcrel_from */ -#define MD_PCREL_FROM_SECTION(FIXP, SEC) md_pcrel_from_section(FIXP, SEC) +#define tc_fix_adjustable(FIX) (!(FIX)->fx_pcrel) -- 2.30.2