[PATCH] ld --build-id

Nick Clifton nickc@redhat.com
Mon Jul 9 15:11:00 GMT 2007


Hi Roland,

> include/elf/
> 2007-07-01  Roland McGrath  <roland@redhat.com>
> 
> 	* common.h (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
> 
> binutils/
> 	* readelf.c (get_gnu_elf_note_type): New function.
> 	(process_note): Use it for "GNU" name.
> 
> include/
> 2007-07-01  Roland McGrath  <roland@redhat.com>
> 
> 	* bfdlink.h (struct bfd_link_info): Add member emit_note_gnu_build_id.
> 
> bfd/
> 2007-07-01  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.
> 
> ld/
> 2007-07-01  Roland McGrath  <roland@redhat.com>
> 
> 	* emultempl/elf32.em (gld${EMULATION_NAME}_add_option): Add --build-id.
> 	(gld${EMULATION_NAME}_handle_option): Handle --build-id.
> 	(gld${EMULATION_NAME}_list_options): List --build-id.
> 	(gld${EMULATION_NAME}_after_open): If --build-id was given,
> 	synthesize a ".note.gnu.build-id" section and cache it in elf_tdata.
> 	* ld.texinfo (Options): Describe --build-id.
> 	* NEWS: Mention --build-id.

Approved - please apply.

Cheers
   Nick



More information about the Binutils mailing list