diff options
author | Alan Modra <amodra@gmail.com> | 2007-01-12 06:23:52 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2007-01-12 06:23:52 +0000 |
commit | 66a4ad426416db84eb567c211dd73c8722380b06 (patch) | |
tree | 9cad43f22d0c0ab7e920ed25455cb578b25c7f5b /gas/config/tc-mn10300.h | |
parent | 21e40a48721a47630060e8768e6211026114601d (diff) | |
download | gdb-66a4ad426416db84eb567c211dd73c8722380b06.zip gdb-66a4ad426416db84eb567c211dd73c8722380b06.tar.gz gdb-66a4ad426416db84eb567c211dd73c8722380b06.tar.bz2 |
* config/tc-spu.h (TC_RELOC_RTSYM_LOC_FIXUP): Delete.
* config/tc-m32r.h (TC_RELOC_RTSYM_LOC_FIXUP): Delete.
* config/tc-mn10300.h (TC_RELOC_RTSYM_LOC_FIXUP): Delete.
(TC_FORCE_RELOCATION): Define.
(TC_FORCE_RELOCATION_LOCAL): Define.
* config/tc-mn10300.c (mn10300_fix_adjustable): Adjust.
Diffstat (limited to 'gas/config/tc-mn10300.h')
-rw-r--r-- | gas/config/tc-mn10300.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gas/config/tc-mn10300.h b/gas/config/tc-mn10300.h index dff663d..8f5c813 100644 --- a/gas/config/tc-mn10300.h +++ b/gas/config/tc-mn10300.h @@ -1,5 +1,5 @@ /* tc-mn10300.h -- Header file for tc-mn10300.c. - Copyright 1996, 1997, 2000, 2001, 2002, 2003, 2004, 2005 + Copyright 1996, 1997, 2000, 2001, 2002, 2003, 2004, 2005, 2007 Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler. @@ -26,15 +26,15 @@ #define DIFF_EXPR_OK #define GLOBAL_OFFSET_TABLE_NAME "_GLOBAL_OFFSET_TABLE_" -#define TC_RELOC_RTSYM_LOC_FIXUP(FIX) \ - ((FIX)->fx_r_type != BFD_RELOC_32_PLT_PCREL \ - && (FIX)->fx_r_type != BFD_RELOC_MN10300_GOT32 \ - && (FIX)->fx_r_type != BFD_RELOC_32_GOT_PCREL \ - && ((FIX)->fx_addsy == NULL \ - || (! S_IS_EXTERNAL ((FIX)->fx_addsy) \ - && ! S_IS_WEAK ((FIX)->fx_addsy) \ - && S_IS_DEFINED ((FIX)->fx_addsy) \ - && ! S_IS_COMMON ((FIX)->fx_addsy)))) +#define TC_FORCE_RELOCATION(FIX) \ + (generic_force_reloc (FIX)) + +#define TC_FORCE_RELOCATION_LOCAL(FIX) \ + (!(FIX)->fx_pcrel \ + || (FIX)->fx_r_type == BFD_RELOC_32_PLT_PCREL \ + || (FIX)->fx_r_type == BFD_RELOC_MN10300_GOT32 \ + || (FIX)->fx_r_type == BFD_RELOC_32_GOT_PCREL \ + || TC_FORCE_RELOCATION (FIX)) #define md_parse_name(name, exprP, mode, nextcharP) \ mn10300_parse_name ((name), (exprP), (mode), (nextcharP)) |