Handle R_X86_64_32 like R_X86_64_64 for ILP32.
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 14 Jan 2011 22:48:12 +0000 (22:48 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 14 Jan 2011 22:48:12 +0000 (22:48 +0000)
commit248775ba37b0ef8b8ef46b34b231a569722e628c
treef6caebc5cf0a0b1bf6269be5565a2a0e71937981
parent2c291032cceb2390927dbe4c2a3c793f02c526aa
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