OSDN Git Service

2007-07-09 Roland McGrath <roland@redhat.com>
authorroland <roland>
Mon, 9 Jul 2007 21:23:39 +0000 (21:23 +0000)
committerroland <roland>
Mon, 9 Jul 2007 21:23:39 +0000 (21:23 +0000)
commitf960f5454e83d91d96f7afe8fed5e8e43e8c9a39
tree00509c38db3df877dab4517224ee24c566acba04
parent60bbf658ad6e0094f3ba100c3dcec5d77097f8e4
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