aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-v850.h
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1996-10-16 06:21:23 +0000
committerJeff Law <law@redhat.com>1996-10-16 06:21:23 +0000
commitf964b01d903959abb9ccf666a111bb80b6f2da01 (patch)
tree82cb81d81cc8f3ff388ec3f071a831a60f49f089 /gas/config/tc-v850.h
parent05f1baaa20dc6b0b62dbd414277e62556bc54cde (diff)
downloadgdb-f964b01d903959abb9ccf666a111bb80b6f2da01.zip
gdb-f964b01d903959abb9ccf666a111bb80b6f2da01.tar.gz
gdb-f964b01d903959abb9ccf666a111bb80b6f2da01.tar.bz2
* config/tc-v850.c (md_pcrel_from): Delete unused function.
(md_pcrel_from_section): New function. * config/tc-v850.h (MD_PCREL_FROM_SECTION): Define. So we don't screw up pc-relative jumps/calls from one section into another section within the same .o file. Fixes global ctors/dtors to work with DECL_ONE_ONLY stuff.
Diffstat (limited to 'gas/config/tc-v850.h')
-rw-r--r--gas/config/tc-v850.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gas/config/tc-v850.h b/gas/config/tc-v850.h
index 4cb2bbe..dac6f25 100644
--- a/gas/config/tc-v850.h
+++ b/gas/config/tc-v850.h
@@ -46,3 +46,6 @@
#define WORKING_DOT_WORD
#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)