diff options
author | Alan Modra <amodra@gmail.com> | 2002-07-09 09:46:18 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2002-07-09 09:46:18 +0000 |
commit | c66827056daabd0b8e8bfd0cf62767fdfc4a1918 (patch) | |
tree | 0ec25bcca7aec201356545f20328262537716b4a /gas/config/tc-i386.h | |
parent | ad42262f8f1b8cc9d8af7a593faa7fde13ebb529 (diff) | |
download | gdb-c66827056daabd0b8e8bfd0cf62767fdfc4a1918.zip gdb-c66827056daabd0b8e8bfd0cf62767fdfc4a1918.tar.gz gdb-c66827056daabd0b8e8bfd0cf62767fdfc4a1918.tar.bz2 |
* config/tc-i386.c (md_pseudo_table <file>): Warning fix.
(BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
(md_apply_fix3): Formatting. Remove redundant test.
(tc_gen_reloc): Remove redundant code.
(tc_i386_force_relocation): Delete. Movy body of function to..
* config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
Diffstat (limited to 'gas/config/tc-i386.h')
-rw-r--r-- | gas/config/tc-i386.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gas/config/tc-i386.h b/gas/config/tc-i386.h index 8af8555..9bbf5ea 100644 --- a/gas/config/tc-i386.h +++ b/gas/config/tc-i386.h @@ -171,8 +171,15 @@ extern void x86_cons_fix_new PARAMS ((fragS *, unsigned int, unsigned int, expressionS *)); #endif -#define TC_FORCE_RELOCATION(fixp) tc_i386_force_relocation(fixp) -extern int tc_i386_force_relocation PARAMS ((struct fix *)); +#ifdef BFD_ASSEMBLER +#define TC_FORCE_RELOCATION(FIXP) \ + ((FIXP)->fx_r_type == BFD_RELOC_VTABLE_INHERIT \ + || (FIXP)->fx_r_type == BFD_RELOC_VTABLE_ENTRY) +#else +/* For COFF. */ +#define TC_FORCE_RELOCATION(FIXP) \ + ((FIXP)->fx_r_type == 7) +#endif #ifdef BFD_ASSEMBLER #define NO_RELOC BFD_RELOC_NONE |