* config/tc-i386.h (EXTERN_FORCE_RELOC): Define.

(MD_APPLY_SYM_VALUE): Define for PE too.
This commit is contained in:
Alan Modra 2002-10-15 02:20:53 +00:00
parent 4a351cef15
commit 3ca4bdc352
2 changed files with 14 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-10-15 Alan Modra <amodra@bigpond.net.au>
* config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
(MD_APPLY_SYM_VALUE): Define for PE too.
2002-10-14 Alan Modra <amodra@bigpond.net.au>
* Makefile.am: Run "make dep-am".

View File

@ -467,9 +467,17 @@ void i386_validate_fix PARAMS ((struct fix *));
#define tc_fix_adjustable(X) tc_i386_fix_adjustable(X)
extern int tc_i386_fix_adjustable PARAMS ((struct fix *));
#ifndef TE_PE
/* Values passed to md_apply_fix3 don't include the symbol value. */
#define MD_APPLY_SYM_VALUE(FIX) 0
/* ELF wants external syms kept, as does PE COFF. */
#ifdef TE_PE
#define EXTERN_FORCE_RELOC \
(OUTPUT_FLAVOR == bfd_target_elf_flavour \
|| OUTPUT_FLAVOR == bfd_target_coff_flavour)
#else
#define EXTERN_FORCE_RELOC \
(OUTPUT_FLAVOR == bfd_target_elf_flavour)
#endif
#define TC_FORCE_RELOCATION(FIX) i386_force_relocation (FIX)