forked from Imagelibrary/binutils-gdb
Use pc-relative relocation instead of an absolute relocation for x86_64-pc-mingw32 target.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user