mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-24 12:35:55 +08:00
Fixes a problem generating relocs for import libraries created by Microsoft tools for the x85_64 architecture.
PR ld/16598 * peicode.h (pe_ILF_build_a_bfd): Add support for creating relocs suitable for the AMD64.
This commit is contained in:
parent
273a49858f
commit
27aaeda0cd
@ -1,3 +1,9 @@
|
||||
2015-03-18 Eric Youngdale <eyoungdale@ptc.com>
|
||||
|
||||
PR ld/16598
|
||||
* peicode.h (pe_ILF_build_a_bfd): Add support for creating relocs
|
||||
suitable for the AMD64.
|
||||
|
||||
2015-03-18 Jon Turney <jon.turney@dronecode.org.uk>
|
||||
Nick Clifton <nickc@redhat.com>
|
||||
|
||||
|
@ -972,6 +972,15 @@ pe_ILF_build_a_bfd (bfd * abfd,
|
||||
imp_index);
|
||||
}
|
||||
else
|
||||
#endif
|
||||
#ifdef AMD64MAGIC
|
||||
if (magic == AMD64MAGIC)
|
||||
{
|
||||
pe_ILF_make_a_symbol_reloc (&vars, (bfd_vma) jtab[i].offset,
|
||||
BFD_RELOC_32_PCREL, (asymbol **) imp_sym,
|
||||
imp_index);
|
||||
}
|
||||
else
|
||||
#endif
|
||||
pe_ILF_make_a_symbol_reloc (&vars, (bfd_vma) jtab[i].offset,
|
||||
BFD_RELOC_32, (asymbol **) imp_sym,
|
||||
|
Loading…
Reference in New Issue
Block a user