Fix x86-64 ILP32 shared library.
commit6ff1db083d3a9acc09c3cbdc23d73399d3c3ad2b
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 14 Jan 2011 04:23:58 +0000 (14 04:23 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 14 Jan 2011 04:23:58 +0000 (14 04:23 +0000)
treeb7220825bfe2b98e343441e367fd24cada3a53a1
parent07a3424188b6200787eb190eb2561eacee7aebed
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