aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1996-10-16 17:32:39 +0000
committerJeff Law <law@redhat.com>1996-10-16 17:32:39 +0000
commit0f8e50bb76b183bfa1f63d44c7dd3061e9ef0824 (patch)
tree0f9f771c024dbbfdc3f550ae3770b5ece732552f /gas/config
parente1d98a0a6547e6c518640756263dfdd0df8ae1cd (diff)
downloadgdb-0f8e50bb76b183bfa1f63d44c7dd3061e9ef0824.zip
gdb-0f8e50bb76b183bfa1f63d44c7dd3061e9ef0824.tar.gz
gdb-0f8e50bb76b183bfa1f63d44c7dd3061e9ef0824.tar.bz2
* 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.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-v850.c6
-rw-r--r--gas/config/tc-v850.h3
2 files changed, 3 insertions, 6 deletions
diff --git a/gas/config/tc-v850.c b/gas/config/tc-v850.c
index e2c3f56..f1c8d7c 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 dac6f25..3ea07f7 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)