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:
Nick Clifton 2015-03-18 16:19:59 +00:00
parent 273a49858f
commit 27aaeda0cd
2 changed files with 15 additions and 0 deletions

View File

@ -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>

View File

@ -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,