Nick Clifton d8045f234d include/elf
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.
2009-04-30 15:47:13 +00:00
..
2009-04-27 14:27:36 +00:00
2008-11-14 09:57:35 +00:00
2009-03-06 12:14:40 +00:00
2007-06-14 15:31:01 +00:00
2009-04-16 23:07:00 +00:00
2009-04-16 23:07:00 +00:00
2009-04-16 23:07:00 +00:00
2009-02-03 18:16:04 +00:00
2009-03-11 04:36:40 +00:00
2009-04-16 15:39:48 +00:00
2009-04-30 15:47:13 +00:00
2009-04-01 19:53:53 +00:00
2009-04-27 14:27:36 +00:00
2009-04-16 23:07:00 +00:00
2009-04-16 23:07:00 +00:00
2009-04-30 15:47:13 +00:00
2009-01-02 16:48:11 +00:00
2009-04-16 23:07:00 +00:00
2009-04-16 23:07:00 +00:00
2009-04-16 23:07:00 +00:00
2009-04-16 23:07:00 +00:00
2009-02-18 18:23:08 +00:00
2009-04-21 02:13:48 +00:00
2009-04-14 09:47:44 +00:00
2008-10-09 09:00:08 +00:00
2008-07-10 01:32:23 +00:00
2009-04-17 13:46:18 +00:00
2008-11-06 14:10:46 +00:00
2009-04-17 13:46:18 +00:00
2008-11-14 09:57:35 +00:00
2009-04-17 13:46:18 +00:00
2008-12-23 19:10:25 +00:00
2007-09-11 16:07:50 +00:00
2009-04-08 02:24:23 +00:00
2009-02-03 18:16:04 +00:00
2009-04-16 15:39:48 +00:00
2009-03-04 05:50:50 +00:00
2008-07-30 04:34:58 +00:00
2009-04-30 00:01:11 +00:00
2009-02-18 15:28:56 +00:00
2008-01-09 12:29:08 +00:00
2008-07-30 04:34:58 +00:00
2009-04-07 18:21:22 +00:00
2009-04-30 15:47:13 +00:00
2008-07-30 04:34:58 +00:00
2008-12-23 19:10:25 +00:00
2008-07-30 04:34:58 +00:00
2009-03-18 11:27:18 +00:00
2009-02-03 14:36:47 +00:00
2009-04-08 02:24:23 +00:00
2009-04-16 15:39:48 +00:00
2008-07-30 04:34:58 +00:00
2009-03-19 07:04:12 +00:00
2009-03-19 07:04:12 +00:00
2007-09-26 13:45:32 +00:00
2009-03-18 11:27:18 +00:00
2008-01-15 07:25:49 +00:00
2008-02-15 03:35:53 +00:00
2009-04-30 15:47:13 +00:00
2009-04-30 15:47:13 +00:00
2009-02-01 12:05:25 +00:00
2008-02-20 17:42:36 +00:00
2009-04-30 15:47:13 +00:00
2009-04-30 15:47:13 +00:00
2009-04-30 15:47:13 +00:00
2009-04-16 23:07:00 +00:00
2008-01-21 04:56:47 +00:00
2007-09-19 12:08:34 +00:00
2008-02-15 03:35:53 +00:00
2009-04-16 23:07:00 +00:00
2009-04-16 23:07:00 +00:00
2009-04-16 23:07:00 +00:00
2009-04-16 23:07:00 +00:00
2009-04-16 23:07:00 +00:00
2008-02-20 17:42:36 +00:00
2009-04-16 23:07:00 +00:00
2009-02-18 18:23:08 +00:00
2009-04-21 02:13:48 +00:00
2009-02-18 18:23:08 +00:00
2009-04-16 23:07:00 +00:00
2008-02-15 03:35:53 +00:00
2009-04-16 23:07:00 +00:00
2009-04-27 14:27:36 +00:00
2009-04-27 14:27:36 +00:00
2009-04-16 23:07:00 +00:00
2009-04-16 23:07:00 +00:00
2009-04-16 23:07:00 +00:00
2009-01-19 06:11:22 +00:00
2007-11-04 23:49:09 +00:00
2009-02-18 18:23:08 +00:00
2009-04-16 23:07:00 +00:00
2009-02-18 18:23:08 +00:00
2009-02-18 18:23:08 +00:00
2009-02-18 18:23:08 +00:00
2009-02-18 18:23:08 +00:00
2009-02-18 18:23:08 +00:00
2009-02-18 18:23:08 +00:00
2009-04-21 02:13:48 +00:00
2009-04-27 13:59:43 +00:00
2009-04-16 23:07:00 +00:00
2009-03-04 05:50:50 +00:00
2009-04-16 23:07:00 +00:00
2008-02-15 03:35:53 +00:00
2009-04-16 23:07:00 +00:00
2008-02-20 17:42:36 +00:00
2008-02-15 03:35:53 +00:00
2009-04-30 15:47:13 +00:00
2009-04-27 14:27:36 +00:00
2009-04-16 23:07:00 +00:00
2009-02-18 18:23:08 +00:00
2009-04-27 14:27:36 +00:00
2009-04-16 23:07:00 +00:00
2009-04-30 00:00:05 +00:00
2009-03-18 11:47:18 +00:00
2009-04-16 23:07:00 +00:00
2008-02-04 19:43:51 +00:00
2009-04-16 23:07:00 +00:00
2009-04-16 23:07:00 +00:00
2009-04-16 23:07:00 +00:00

BFD is an object file library.  It permits applications to use the
same routines to process object files regardless of their format.

BFD is used by the GNU debugger, assembler, linker, and the binary
utilities.

The documentation on using BFD is scanty and may be occasionally
incorrect.  Pointers to documentation problems, or an entirely
rewritten manual, would be appreciated.

There is some BFD internals documentation in doc/bfdint.texi which may
help programmers who want to modify BFD.

BFD is normally built as part of another package.  See the build
instructions for that package, probably in a README file in the
appropriate directory.

BFD supports the following configure options:

  --target=TARGET
	The default target for which to build the library.  TARGET is
	a configuration target triplet, such as sparc-sun-solaris.
  --enable-targets=TARGET,TARGET,TARGET...
	Additional targets the library should support.  To include
	support for all known targets, use --enable-targets=all.
  --enable-64-bit-bfd
	Include support for 64 bit targets.  This is automatically
	turned on if you explicitly request a 64 bit target, but not
	for --enable-targets=all.  This requires a compiler with a 64
	bit integer type, such as gcc.
  --enable-shared
	Build BFD as a shared library.
  --with-mmap
	Use mmap when accessing files.  This is faster on some hosts,
	but slower on others.  It may not work on all hosts.

Report bugs with BFD to bug-binutils@gnu.org.

Patches are encouraged.  When sending patches, always send the output
of diff -u or diff -c from the original file to the new file.  Do not
send default diff output.  Do not make the diff from the new file to
the original file.  Remember that any patch must not break other
systems.  Remember that BFD must support cross compilation from any
host to any target, so patches which use ``#ifdef HOST'' are not
acceptable.  Please also read the ``Reporting Bugs'' section of the
gcc manual.

Bug reports without patches will be remembered, but they may never get
fixed until somebody volunteers to fix them.