diff options
author | Nick Clifton <nickc@redhat.com> | 2015-03-18 16:19:59 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2015-03-18 16:19:59 +0000 |
commit | 27aaeda0cdf9f69625b96e3abdb25c8fdbbb3435 (patch) | |
tree | b15f9dacb64dd82acd67857e892df2c05022a846 /bfd/peicode.h | |
parent | 273a49858fa9c8d73de87167618ef99d70f9731a (diff) | |
download | gdb-27aaeda0cdf9f69625b96e3abdb25c8fdbbb3435.zip gdb-27aaeda0cdf9f69625b96e3abdb25c8fdbbb3435.tar.gz gdb-27aaeda0cdf9f69625b96e3abdb25c8fdbbb3435.tar.bz2 |
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.
Diffstat (limited to 'bfd/peicode.h')
-rw-r--r-- | bfd/peicode.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bfd/peicode.h b/bfd/peicode.h index e36568a..200ef5e 100644 --- a/bfd/peicode.h +++ b/bfd/peicode.h @@ -973,6 +973,15 @@ pe_ILF_build_a_bfd (bfd * abfd, } 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, imp_index); |