2007-07-09 Roland McGrath <roland@redhat.com>
authorRoland McGrath <roland@gnu.org>
Mon, 9 Jul 2007 21:23:39 +0000 (21:23 +0000)
committerRoland McGrath <roland@gnu.org>
Mon, 9 Jul 2007 21:23:39 +0000 (21:23 +0000)
commit20a761b5e938488128342ab0f12244b5eadd8d35
tree070301a4b7cdad95e120e506bb948ab135c0fd0f
parentd94838b10225a1444ce294b342b75c7729fddeac
2007-07-09  Roland McGrath  <roland@redhat.com>

* elf-bfd.h (struct elf_obj_tdata): Add members
emit_note_gnu_build_id and note_gnu_build_id_sec.
* elf.c (_bfd_id_note_section_size): New global function.
(read_hex, _bfd_elf_write_build_id_section): New static functions.
(_bfd_elf_write_object_contents): Call _bfd_elf_write_build_id_section
if emit_note_gnu_build_id is set.
* Makefile.am (elf.lo): Update dependencies.
* elf-bfd.h (struct elf_size_info): Add checksum_contents hook.
(bfd_elf32_checksum_contents, bfd_elf64_checksum_contents): Declare.
* elfcode.h (elf_checksum_contents): New macro and function.
(NAME(_bfd_elf,size_info)): Initialize checksum_contents hook.
bfd/elf-bfd.h