aarch64: Revert AArch64 ifunc changes.
authorWill Newton <willnewton@sourceware.org>
Wed, 19 Jun 2013 10:30:59 +0000 (10:30 +0000)
committerWill Newton <willnewton@sourceware.org>
Wed, 19 Jun 2013 10:30:59 +0000 (10:30 +0000)
commit8847944f8c434b7f254514251e29b6c6917acb1b
tree032ad1e094efe58de0a45f72954d1de39e73962f
parent3190f0c611ee86ceed79743d228cfb0edc084ed0
aarch64: Revert AArch64 ifunc changes.

The AArch64 ifunc patch introduced a regression caused by incorrect
PLT layout. Revert it until a fix is verified.

bfd/ChangeLog:

2013-06-19  Will Newton  <will.newton@linaro.org>

* configure: Regenerated.
* configure.in: Remove aarch64 dependency on elf-ifunc.c.
* elf64-aarch64.c: Remove objalloc.h include.
(elf64_aarch64_howto_dynrelocs): Remove R_AARCH64_IRELATIVE howto.
(struct elf64_aarch64_link_hash_table): Remove ifunc related
members. (elf_aarch64_local_htab_hash): Remove function.
(elf_aarch64_local_htab_eq): Remove function.
(elf_aarch64_get_local_sym_hash): Remove function.
(elf64_aarch64_link_hash_table_create): Remove local hash
table initialization.
(elf64_aarch64_final_link_relocate): Remove sym argument and
handling of ifunc symbols.
(elf64_aarch64_relocate_section): Don't pass sym argument to
elf64_aarch64_final_link_relocate.
(elf64_aarch64_gc_sweep_hook): Remove handling of ifunc symbols.
(elf64_aarch64_adjust_dynamic_symbol): Likewise.
(elf64_aarch64_check_relocs): Likewise.
(elf64_aarch64_post_process_headers): Remove call to
_bfd_elf_set_osabi.
(elf64_aarch64_is_function_type): New function.
(elf64_aarch64_allocate_dynrelocs): Remove handling of ifunc
symbols. (elf_aarch64_allocate_local_dynrelocs): Remove function.
(elf64_aarch64_size_dynamic_sections): Remove call to
elf_aarch64_allocate_local_dynrelocs.
(elf64_aarch64_create_small_pltn_entry): Remove info argument.
Remove creation of R_AARCH64_IRELATIVE dynamic relocs.
(elf64_aarch64_finish_dynamic_symbol): Remove handling of ifunc
symbols. (elf_aarch64_finish_local_dynamic_symbol): Remove
function. (elf64_aarch64_finish_dynamic_sections): Remove call to
elf_aarch64_finish_local_dynamic_symbol.
(elf64_aarch64_add_symbol_hook): Remove function.

include/elf/ChangeLog:

2013-06-19  Will Newton  <will.newton@linaro.org>

* aarch64.h: Remove R_AARCH64_IRELATIVE.

ld/ChangeLog:

2013-06-19  Will Newton  <will.newton@linaro.org>

* emulparams/aarch64elf.sh: Remove IREL_IN_PLT.

ld/testsuite/ChangeLog:

2013-06-19  Will Newton  <will.newton@linaro.org>

* ld-aarch64/aarch64-elf.exp: Remove ifunc tests.
* ld-ifunc/ifunc.exp: Disable ifunc tests on AArch64.
* ld-aarch64/ifunc-1-local.d: Remove.
* ld-aarch64/ifunc-1-local.s: Likewise.
* ld-aarch64/ifunc-1.d: Likewise.
* ld-aarch64/ifunc-1.s: Likewise.
* ld-aarch64/ifunc-10.d: Likewise.
* ld-aarch64/ifunc-10.s: Likewise.
* ld-aarch64/ifunc-11.d: Likewise.
* ld-aarch64/ifunc-11.s: Likewise.
* ld-aarch64/ifunc-12.d: Likewise.
* ld-aarch64/ifunc-12.s: Likewise.
* ld-aarch64/ifunc-13.d: Likewise.
* ld-aarch64/ifunc-13a.s: Likewise.
* ld-aarch64/ifunc-13b.s: Likewise.
* ld-aarch64/ifunc-14a.d: Likewise.
* ld-aarch64/ifunc-14a.s: Likewise.
* ld-aarch64/ifunc-14b.d: Likewise.
* ld-aarch64/ifunc-14b.s: Likewise.
* ld-aarch64/ifunc-14c.d: Likewise.
* ld-aarch64/ifunc-14c.s: Likewise.
* ld-aarch64/ifunc-14d.d: Likewise.
* ld-aarch64/ifunc-14e.d: Likewise.
* ld-aarch64/ifunc-14f.d: Likewise.
* ld-aarch64/ifunc-15.d: Likewise.
* ld-aarch64/ifunc-15.s: Likewise.
* ld-aarch64/ifunc-16.d: Likewise.
* ld-aarch64/ifunc-16.s: Likewise.
* ld-aarch64/ifunc-17a.d: Likewise.
* ld-aarch64/ifunc-17a.s: Likewise.
* ld-aarch64/ifunc-17b.d: Likewise.
* ld-aarch64/ifunc-17b.s: Likewise.
* ld-aarch64/ifunc-18a.d: Likewise.
* ld-aarch64/ifunc-18a.s: Likewise.
* ld-aarch64/ifunc-18b.d: Likewise.
* ld-aarch64/ifunc-18b.s: Likewise.
* ld-aarch64/ifunc-19a.d: Likewise.
* ld-aarch64/ifunc-19a.s: Likewise.
* ld-aarch64/ifunc-19b.d: Likewise.
* ld-aarch64/ifunc-19b.s: Likewise.
* ld-aarch64/ifunc-2-local.d: Likewise.
* ld-aarch64/ifunc-2-local.s: Likewise.
* ld-aarch64/ifunc-2.d: Likewise.
* ld-aarch64/ifunc-2.s: Likewise.
* ld-aarch64/ifunc-20.d: Likewise.
* ld-aarch64/ifunc-20.s: Likewise.
* ld-aarch64/ifunc-3.s: Likewise.
* ld-aarch64/ifunc-3a.d: Likewise.
* ld-aarch64/ifunc-3b.d: Likewise.
* ld-aarch64/ifunc-4.d: Likewise.
* ld-aarch64/ifunc-4.s: Likewise.
* ld-aarch64/ifunc-4a.d: Likewise.
* ld-aarch64/ifunc-5-local.s: Likewise.
* ld-aarch64/ifunc-5.s: Likewise.
* ld-aarch64/ifunc-5a-local.d: Likewise.
* ld-aarch64/ifunc-5a.d: Likewise.
* ld-aarch64/ifunc-5b-local.d: Likewise.
* ld-aarch64/ifunc-5b.d: Likewise.
* ld-aarch64/ifunc-5r-local.d: Likewise.
* ld-aarch64/ifunc-6.s: Likewise.
* ld-aarch64/ifunc-6a.d: Likewise.
* ld-aarch64/ifunc-6b.d: Likewise.
* ld-aarch64/ifunc-7.s: Likewise.
* ld-aarch64/ifunc-7a.d: Likewise.
* ld-aarch64/ifunc-7b.d: Likewise.
* ld-aarch64/ifunc-7c.d: Likewise.
* ld-aarch64/ifunc-8.d: Likewise.
* ld-aarch64/ifunc-8a.s: Likewise.
* ld-aarch64/ifunc-8b.s: Likewise.
* ld-aarch64/ifunc-9.d: Likewise.
* ld-aarch64/ifunc-9.s: Likewise.
80 files changed:
bfd/ChangeLog
bfd/configure
bfd/configure.in
bfd/elf64-aarch64.c
include/elf/ChangeLog
include/elf/aarch64.h
ld/ChangeLog
ld/emulparams/aarch64elf.sh
ld/testsuite/ChangeLog
ld/testsuite/ld-aarch64/aarch64-elf.exp
ld/testsuite/ld-aarch64/ifunc-1-local.d [deleted file]
ld/testsuite/ld-aarch64/ifunc-1-local.s [deleted file]
ld/testsuite/ld-aarch64/ifunc-1.d [deleted file]
ld/testsuite/ld-aarch64/ifunc-1.s [deleted file]
ld/testsuite/ld-aarch64/ifunc-10.d [deleted file]
ld/testsuite/ld-aarch64/ifunc-10.s [deleted file]
ld/testsuite/ld-aarch64/ifunc-11.d [deleted file]
ld/testsuite/ld-aarch64/ifunc-11.s [deleted file]
ld/testsuite/ld-aarch64/ifunc-12.d [deleted file]
ld/testsuite/ld-aarch64/ifunc-12.s [deleted file]
ld/testsuite/ld-aarch64/ifunc-13.d [deleted file]
ld/testsuite/ld-aarch64/ifunc-13a.s [deleted file]
ld/testsuite/ld-aarch64/ifunc-13b.s [deleted file]
ld/testsuite/ld-aarch64/ifunc-14a.d [deleted file]
ld/testsuite/ld-aarch64/ifunc-14a.s [deleted file]
ld/testsuite/ld-aarch64/ifunc-14b.d [deleted file]
ld/testsuite/ld-aarch64/ifunc-14b.s [deleted file]
ld/testsuite/ld-aarch64/ifunc-14c.d [deleted file]
ld/testsuite/ld-aarch64/ifunc-14c.s [deleted file]
ld/testsuite/ld-aarch64/ifunc-14d.d [deleted file]
ld/testsuite/ld-aarch64/ifunc-14e.d [deleted file]
ld/testsuite/ld-aarch64/ifunc-14f.d [deleted file]
ld/testsuite/ld-aarch64/ifunc-15.d [deleted file]
ld/testsuite/ld-aarch64/ifunc-15.s [deleted file]
ld/testsuite/ld-aarch64/ifunc-16.d [deleted file]
ld/testsuite/ld-aarch64/ifunc-16.s [deleted file]
ld/testsuite/ld-aarch64/ifunc-17a.d [deleted file]
ld/testsuite/ld-aarch64/ifunc-17a.s [deleted file]
ld/testsuite/ld-aarch64/ifunc-17b.d [deleted file]
ld/testsuite/ld-aarch64/ifunc-17b.s [deleted file]
ld/testsuite/ld-aarch64/ifunc-18a.d [deleted file]
ld/testsuite/ld-aarch64/ifunc-18a.s [deleted file]
ld/testsuite/ld-aarch64/ifunc-18b.d [deleted file]
ld/testsuite/ld-aarch64/ifunc-18b.s [deleted file]
ld/testsuite/ld-aarch64/ifunc-19a.d [deleted file]
ld/testsuite/ld-aarch64/ifunc-19a.s [deleted file]
ld/testsuite/ld-aarch64/ifunc-19b.d [deleted file]
ld/testsuite/ld-aarch64/ifunc-19b.s [deleted file]
ld/testsuite/ld-aarch64/ifunc-2-local.d [deleted file]
ld/testsuite/ld-aarch64/ifunc-2-local.s [deleted file]
ld/testsuite/ld-aarch64/ifunc-2.d [deleted file]
ld/testsuite/ld-aarch64/ifunc-2.s [deleted file]
ld/testsuite/ld-aarch64/ifunc-20.d [deleted file]
ld/testsuite/ld-aarch64/ifunc-20.s [deleted file]
ld/testsuite/ld-aarch64/ifunc-3.s [deleted file]
ld/testsuite/ld-aarch64/ifunc-3a.d [deleted file]
ld/testsuite/ld-aarch64/ifunc-3b.d [deleted file]
ld/testsuite/ld-aarch64/ifunc-4.d [deleted file]
ld/testsuite/ld-aarch64/ifunc-4.s [deleted file]
ld/testsuite/ld-aarch64/ifunc-4a.d [deleted file]
ld/testsuite/ld-aarch64/ifunc-5-local.s [deleted file]
ld/testsuite/ld-aarch64/ifunc-5.s [deleted file]
ld/testsuite/ld-aarch64/ifunc-5a-local.d [deleted file]
ld/testsuite/ld-aarch64/ifunc-5a.d [deleted file]
ld/testsuite/ld-aarch64/ifunc-5b-local.d [deleted file]
ld/testsuite/ld-aarch64/ifunc-5b.d [deleted file]
ld/testsuite/ld-aarch64/ifunc-5r-local.d [deleted file]
ld/testsuite/ld-aarch64/ifunc-6.s [deleted file]
ld/testsuite/ld-aarch64/ifunc-6a.d [deleted file]
ld/testsuite/ld-aarch64/ifunc-6b.d [deleted file]
ld/testsuite/ld-aarch64/ifunc-7.s [deleted file]
ld/testsuite/ld-aarch64/ifunc-7a.d [deleted file]
ld/testsuite/ld-aarch64/ifunc-7b.d [deleted file]
ld/testsuite/ld-aarch64/ifunc-7c.d [deleted file]
ld/testsuite/ld-aarch64/ifunc-8.d [deleted file]
ld/testsuite/ld-aarch64/ifunc-8a.s [deleted file]
ld/testsuite/ld-aarch64/ifunc-8b.s [deleted file]
ld/testsuite/ld-aarch64/ifunc-9.d [deleted file]
ld/testsuite/ld-aarch64/ifunc-9.s [deleted file]
ld/testsuite/ld-ifunc/ifunc.exp