bfd/
commit0ec9baec4d4519c5b14f09366f43c9a3adea5452
authorH.J. Lu <hjl@lucon.org>
Sun, 14 Jun 2009 01:39:46 +0000 (14 01:39 +0000)
committerH.J. Lu <hjl@lucon.org>
Sun, 14 Jun 2009 01:39:46 +0000 (14 01:39 +0000)
tree3dd7da8369b024f39fcaedd294eb4da4d1ee1fd5
parent89f27bfdccb039ed375ba133bf0a5a58fb75d3a0
bfd/

2009-06-13  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/10269
* elf32-i386.c: Include "objalloc.h" and "hashtab.h".
(elf_i386_link_hash_table): Add loc_hash_table and
loc_hash_memory.
(elf_i386_local_hash): New.
(elf_i386_local_htab_hash): Likewise.
(elf_i386_local_htab_eq): Likewise.
(elf_i386_get_local_sym_hash): Likewise.
(elf_i386_link_hash_table_free): Likewise.
(elf_i386_allocate_local_dynrelocs): Likewise.
(elf_i386_finish_local_dynamic_symbol): Likewise.
(bfd_elf64_bfd_link_hash_table_free): Likewise.
(elf_i386_link_hash_table_create): Create loc_hash_table and
loc_hash_memory.
(elf_i386_check_relocs): Handle local STT_GNU_IFUNC symbols.
(elf_i386_size_dynamic_sections): Likewise.
(elf_i386_relocate_section): Likewise.
(elf_i386_finish_dynamic_sections): Likewise.
(elf_i386_finish_dynamic_symbol): Check _DYNAMIC only if sym
isn't NULL.

* elf64-x86-64.c: Include "objalloc.h" and "hashtab.h".
(elf64_x86_64_link_hash_table): Add loc_hash_table and
loc_hash_memory.
(elf64_x86_64_local_hash): New.
(elf64_x86_64_local_htab_hash): Likewise.
(elf64_x86_64_local_htab_eq): Likewise.
(elf64_x86_64_get_local_sym_hash): Likewise.
(elf64_x86_64_link_hash_table_free): Likewise.
(elf64_x86_64_allocate_local_dynrelocs): Likewise.
(elf64_x86_64_finish_local_dynamic_symbol): Likewise.
(bfd_elf64_bfd_link_hash_table_free): Likewise.
(elf64_x86_64_link_hash_table_create): Create loc_hash_table
and loc_hash_memory.
(elf64_x86_64_check_relocs): Handle local STT_GNU_IFUNC
symbols.
(elf64_x86_64_size_dynamic_sections): Likewise.
(elf64_x86_64_relocate_section): Likewise.
(elf64_x86_64_finish_dynamic_sections): Likewise.
(elf64_x86_64_finish_dynamic_symbol): Check _DYNAMIC only if
sym isn't NULL.

gas/

2009-06-13  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/10269
* config/tc-i386.c (md_apply_fix): Use TC_FORCE_RELOCATION
instead of generic_force_reloc.

* config/tc-i386.h (TC_FORCE_RELOCATION): New.

ld/testsuite/

2009-06-13  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/10269
*: ld-ifunc/ifunc-1-local-x86.d: New.
*: ld-ifunc/ifunc-1-local-x86.s: Likewise.
*: ld-ifunc/ifunc-2-local-i386.d: Likewise.
*: ld-ifunc/ifunc-2-local-i386.s: Likewise.
*: ld-ifunc/ifunc-2-local-x86-64.d: Likewise.
*: ld-ifunc/ifunc-2-local-x86-64.s: Likewise.
*: ld-ifunc/ifunc-4-local-x86.d: Likewise.
*: ld-ifunc/ifunc-4-local-x86.s: Likewise.
*: ld-ifunc/ifunc-5-local-i386.s: Likewise.
*: ld-ifunc/ifunc-5-local-x86-64.s: Likewise.
*: ld-ifunc/ifunc-5a-local-i386.d: Likewise.
*: ld-ifunc/ifunc-5a-local-x86-64.d: Likewise.
*: ld-ifunc/ifunc-5b-local-i386.d: Likewise.
*: ld-ifunc/ifunc-5b-local-x86-64.d: Likewise.
21 files changed:
bfd/ChangeLog
bfd/elf32-i386.c
bfd/elf64-x86-64.c
gas/ChangeLog
gas/config/tc-i386.c
gas/config/tc-i386.h
ld/testsuite/ChangeLog
ld/testsuite/ld-ifunc/ifunc-1-local-x86.d [new file with mode: 0644]
ld/testsuite/ld-ifunc/ifunc-1-local-x86.s [new file with mode: 0644]
ld/testsuite/ld-ifunc/ifunc-2-local-i386.d [new file with mode: 0644]
ld/testsuite/ld-ifunc/ifunc-2-local-i386.s [new file with mode: 0644]
ld/testsuite/ld-ifunc/ifunc-2-local-x86-64.d [new file with mode: 0644]
ld/testsuite/ld-ifunc/ifunc-2-local-x86-64.s [new file with mode: 0644]
ld/testsuite/ld-ifunc/ifunc-4-local-x86.d [new file with mode: 0644]
ld/testsuite/ld-ifunc/ifunc-4-local-x86.s [new file with mode: 0644]
ld/testsuite/ld-ifunc/ifunc-5-local-i386.s [new file with mode: 0644]
ld/testsuite/ld-ifunc/ifunc-5-local-x86-64.s [new file with mode: 0644]
ld/testsuite/ld-ifunc/ifunc-5a-local-i386.d [new file with mode: 0644]
ld/testsuite/ld-ifunc/ifunc-5a-local-x86-64.d [new file with mode: 0644]
ld/testsuite/ld-ifunc/ifunc-5b-local-i386.d [new file with mode: 0644]
ld/testsuite/ld-ifunc/ifunc-5b-local-x86-64.d [new file with mode: 0644]