mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 03:51:15 +08:00
d8045f234d
2009-04-30 Nick Clifton <nickc@redhat.com> * common.h (STT_GNU_IFUNC): Define. elfcpp 2009-04-30 Nick Clifton <nickc@redhat.com> * (enum STT): Add STT_GNU_IFUNC. gas 2009-04-30 Nick Clifton <nickc@redhat.com> * config/obj-elf.c (obj_elf_type): Add support for a gnu_indirect_function type. * config/tc-i386.c (tc_i386_fix_adjustable): Do not adjust fixups against indirect function symbols. * doc/as.texinfo (.type): Document the support for the gnu_indirect_function symbol type. * NEWS: Mention the new feature. gas/testsuite 2009-04-30 Nick Clifton <nickc@redhat.com> * gas/elf/elf.exp: Extend type test to include an ifunc symbol. Provide an alternative test for targets which do not support ifunc symbols. (type.s): Add entry for an ifunc symbol. (type.e): Add ifunc entry to expected symbol dump. (section2.e-armelf): Add entry for ifunc symbol. (type-noifunc.s): New file. (type-noifunc.e): New file. bfd/ 2009-04-30 Nick Clifton <nickc@redhat.com> * elf-bfd.h (struct bfd_elf_section_data): Add indirect_relocs section pointer. (struct elf_obj_data): Add has_ifunc_symbols boolean. * elf.c (swap_out_syms): Convert BSF_GNU_INDIRECT_FUNCTION flags into a STT_GNU_IFUNC symbol type. (_bfd_elf_is_function_type): Accept STT_GNU_IFUNC as a function type. (_bfd_elf_set_osabi): Set the osasbi field to ELFOSABI_LINUX if the binary contains ifunc symbols. * elfcode.h (elf_slurp_symbol_table): Translate the STT_GNU_IFUNC symbol type into a BSF_GNU_INDIRECT_FUNCTION flag. * elf32-i386.c (is_indirect_function): New function. (elf_i386_check_relocs): Create an ifunc output section. (allocate_dynrelocs): Create dynamic relocs in the ifunc output section if necessary. (elf_i386_relocate_section): Emit a reloc against an ifunc symbol if necessary. (elf_i386_add_symbol_hook): New function. Set the has_ifunc_symbols field of the elf_obj_data structure if an ifunc symbol is encountered. (elf_backend_post_process_headers): Define. (elf_backend_add_symbol_hook): Define. (elf_i386_post_process_headers): Rename to elf_i388_fbsd_post_process_headers. * elf64-x86_64.c (IS_X86_64_PCREL_TYPE): New macro. (is_indirect_function): New function. (elf64_x86_64_check_relocs): Create an ifunc output section. (allocate_dynrelocs): Create dynamic relocs in the ifunc output section if necessary. (elf64_x86_64_relocate_section): Emit a reloc against an ifunc symbol if necessary. (elf_i386_add_symbol_hook): Set the has_ifunc_symbols field of the elf_obj_data structure if an ifunc symbol is encountered. (elf_backend_post_process_headers): Define. * elflink.c (_bfd_elf_adjust_dynamic_symbol): Always create a PLT if we have ifunc symbols to handle. (get_ifunc_reloc_section_name): New function. Computes the name for an ifunc section. (_bfd_elf_make_ifunc_reloc_section): New function. Creates a section to hold ifunc relocs. * syms.c (BSF_GNU_INDIRECT_FUNCTION): Define. (bfd_print_symbol_vandf): Handle ifunc symbols. (bfd_decode_symclass): Likewise. * bfd-in2.h: Regenerate. binutils 2009-04-30 Nick Clifton <nickc@redhat.com> * readelf.c (dump_relocations): Display a relocation against an ifunc symbol as if it were a function invocation. (get_symbol_type): Handle STT_GNU_IFUNC. ld 2009-04-30 Nick Clifton <nickc@redhat.com> * NEWS: Mention support for IFUNC symbols. ld/testsuite 2009-04-30 Nick Clifton <nickc@redhat.com> * ld-ifunc: New directory. * ld-ifunc/ifunc.exp: New file: Run the IFUNC tests. * ld-ifunc/prog.c: New file. * ld-ifunc/lib.c: New file.
83 lines
2.5 KiB
Plaintext
83 lines
2.5 KiB
Plaintext
2009-04-30 Nick Clifton <nickc@redhat.com>
|
|
|
|
* (enum STT): Add STT_GNU_IFUNC.
|
|
|
|
2009-03-20 Mikolaj Zalewski <mikolajz@google.com>
|
|
|
|
* elfcpp.h (SHT_GNU_INCREMENTAL_INPUTS): Define.
|
|
|
|
2009-03-01 Ian Lance Taylor <iant@google.com>
|
|
|
|
* elfcpp_swap.h: #include "config.h". Only #include <byteswap.h>
|
|
if HAVE_BYTESWAP_H is defined; if not, provide definitions for
|
|
bswap_{16,32,64}. For gcc 4.3 and later, use the builtin bswap
|
|
functions. Check WORDS_BIGENDIAN rather than __BYTE_ORDER.
|
|
|
|
2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
* elfcpp.h (enum STT): Remove STT_IFUNC.
|
|
|
|
2008-12-03 Nick Clifton <nickc@redhat.com>
|
|
|
|
* elfcpp.h (enum STT): Add STT_IFUNC.
|
|
|
|
2008-06-12 David S. Miller <davem@davemloft.net>
|
|
|
|
* powerpc.h: New file.
|
|
* elfcpp.h (SHT_ORDERED): New enum constant.
|
|
(DT_PPC_GOT, DT_PPC64_GLINK, DT_PPC64_OPD, DT_PPC64_OPDSZ): Same.
|
|
|
|
2008-05-28 Caleb Howe <cshowe@google.com>
|
|
|
|
* dwarf.h (enum DW_FORM): Define.
|
|
|
|
2008-04-19 Ian Lance Taylor <iant@google.com>
|
|
|
|
* elfcpp_file.h (class Elf_file): Add large_shndx_offset_ field.
|
|
(Elf_file::large_shndx_offset): New function.
|
|
(Elf_file::construct): Initialize large_shndx_offset_.
|
|
(Elf_File::initialize_shnum): If necessary, adjust shstrndx_ and
|
|
set large_shndx_offset_.
|
|
|
|
2008-04-16 David S. Miller <davem@davemloft.net>
|
|
|
|
* elfcpp.h (DF_1_NOW, DF_1_GLOBAL, DF_1_GROUP,
|
|
DF_1_NODELETE, DF_1_LOADFLTR, DF_1_INITFIRST,
|
|
DF_1_NOOPEN, DF_1_ORIGIN, DF_1_DIRECT, DF_1_TRANS,
|
|
DF_1_INTERPOSE, DF_1_NODEFLIB, DF_1_NODUMP,
|
|
DF_1_CONLFAT): New enum constants.
|
|
|
|
2008-04-15 David S. Miller <davem@davemloft.net>
|
|
|
|
* sparc.h (EF_SPARC_EXT_MASK, EF_SPARC_32PLUS_MASK,
|
|
EF_SPARC_32PLUS, EF_SPARC_SUN_US1, EF_SPARC_HAL_R1,
|
|
EF_SPARC_SUN_US3, EF_SPARC_LEDATA, EF_SPARCV9_MM,
|
|
EF_SPARCV9_TSO, EF_SPARCV9_PSO, EF_SPARCV9_RMO):
|
|
Define as enum constants.
|
|
|
|
2008-04-11 David S. Miller <davem@davemloft.net>
|
|
|
|
* sparc.h: New file
|
|
* elfcpp.h (SHN_BEFORE, SHN_AFTER): New enum constants.
|
|
(SHT_SPARC_GOTDATA, SHF_ORDERED, SHF_EXCLUDE,
|
|
STT_SPARC_REGISTER, DT_SPARC_REGISTER): Likewise.
|
|
|
|
2008-04-03 Ian Lance Taylor <iant@google.com>
|
|
|
|
* elfcpp_swap.h (Swap_unaligned<64, true>::writeval): Correct
|
|
byte order.
|
|
|
|
2008-03-24 Ian Lance Taylor <iant@google.com>
|
|
|
|
* elfcpp.h (NT_VERSION, NT_ARCH): Define as enum constants.
|
|
(NT_GNU_ABI_TAG, NT_GNU_HWCAP): Likewise.
|
|
(NT_GNU_BUILD_ID, NT_GNU_GOLD_VERSION): Likewise.
|
|
(ELF_NOTE_OS_LINUX, ELF_NOTE_OS_GNU): Likewise.
|
|
(ELF_NOTE_OS_SOLARIS2, ELF_NOTE_OS_NETBSD): Likewise.
|
|
(ELF_NOTE_OS_SYLLABLE): Likewise.
|
|
|
|
2008-03-21 Ian Lance Taylor <iant@google.com>
|
|
|
|
* Added source code to GNU binutils.
|
|
|