Use pc-relative relocation instead of an absolute relocation for x86_64-pc-mingw32 target.

This commit is contained in:
Nick Clifton
2007-03-16 15:13:21 +00:00
parent 29975052f1
commit 591a748af9
6 changed files with 79 additions and 34 deletions

View File

@@ -1975,7 +1975,11 @@ make_one (def_file_export *exp, bfd *parent, bfd_boolean include_jmp_stub)
switch (pe_details->pe_arch)
{
case PE_ARCH_i386:
quick_reloc (abfd, 2, BFD_RELOC_32, 2);
#ifdef pe_use_x86_64
quick_reloc (abfd, 2, BFD_RELOC_32_PCREL, 2);
#else
quick_reloc (abfd, 2, BFD_RELOC_32, 2);
#endif
break;
case PE_ARCH_sh:
quick_reloc (abfd, 8, BFD_RELOC_32, 2);