OSDN Git Service

Handle R_X86_64_32 like R_X86_64_64 for ILP32.
authorhjl <hjl>
Fri, 14 Jan 2011 22:48:10 +0000 (22:48 +0000)
committerhjl <hjl>
Fri, 14 Jan 2011 22:48:10 +0000 (22:48 +0000)
commitd5ae5fc01e64cf5f37fddd247ff833b0678d614a
tree11ab745dc1ba890d48efc9feeeb92e32961e6678
parentdc72af233b435e18c5bafaf5804ccf31f37d8edf
Handle R_X86_64_32 like R_X86_64_64 for ILP32.

bfd/

2011-01-14  H.J. Lu  <hongjiu.lu@intel.com>

* elf64-x86-64.c (elf_x86_64_link_hash_table): Add pointer_r_type.
(elf_x86_64_link_hash_table_create): Set pointer_r_type.
(elf_x86_64_check_relocs): Handle R_X86_64_32 like R_X86_64_64
for ILP32.  Remove ABI_64_P PIC check for R_X86_64_8,
R_X86_64_16, R_X86_64_32 and R_X86_64_32S.
(elf_x86_64_relocate_section):  Handle R_X86_64_32 like R_X86_64_64
for ILP32.

ld/testsuite/

2011-01-14  H.J. Lu  <hongjiu.lu@intel.com>

* ld-x86-64/ilp32-5.d: New.
* ld-x86-64/ilp32-5.s: Likewise.

* ld-x86-64/x86-64.exp: Run ilp32-5.
bfd/ChangeLog
bfd/elf64-x86-64.c
ld/testsuite/ChangeLog
ld/testsuite/ld-x86-64/ilp32-5.d [new file with mode: 0644]
ld/testsuite/ld-x86-64/ilp32-5.s [new file with mode: 0644]
ld/testsuite/ld-x86-64/x86-64.exp