Fix x86-64 ILP32 shared library.
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 14 Jan 2011 04:24:00 +0000 (04:24 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 14 Jan 2011 04:24:00 +0000 (04:24 +0000)
commit82e96e07e5c45073273535cfe3ca665091199033
tree29fdac6e6ad7108f9ba058555e9faecf0ac4391a
parent175b7cd42c9adacf6fd3d4c70248c237647fa4fd
Fix x86-64 ILP32 shared library.

bfd/

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

* elf64-x86-64.c (elf_x86_64_link_hash_table): Remove
swap_reloca_out.
(elf_x86_64_link_hash_table_create): Don't set swap_reloca_out.
(elf_x86_64_check_relocs): Align relocation section to 4 byte
for 32bit.
(elf_x86_64_gc_sweep_hook): Replace ELF64_ST_TYPE with
ELF_ST_TYPE.
(elf_x86_64_finish_dynamic_symbol): Updated.
(elf_x86_64_finish_dynamic_sections): Don't use
Elf64_External_Dyn, bfd_elf64_swap_dyn_in, nor
bfd_elf64_swap_dyn_out.

ld/testsuite/

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

* ld-x86-64/ilp32-4.d: New.

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