From c6371eeb8d958a1eff77038411bf8146a01d7fc1 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 18 Feb 2013 23:50:26 +0000 Subject: [PATCH] include/ * bfdlink.h (struct bfd_link_info): Delete emit_note_gnu_build_id. bfd/ * configure.in: Bump version to 2.23.52. * elf-bfd.h (struct elf_build_id_info): New. (struct elf_obj_tdata): Delete after_write_object_contents, after_write_object_contents_info and build_id_size. Make build_id a pointer to struct elf_build_id_info. * elf.c (_bfd_elf_write_object_contents): Style. Update after_write_ibject_contents invocation. (elfobj_grok_gnu_build_id): Update for new build_id struct. Don't allow zero size notes. * configure: Regenerate. gdb/ * elfread.c (struct build_id): Delete. Use struct elf_build_id throughout file instead. (build_id_bfd_get): Update to use new elf_tdata build_id field. Don't xmalloc return value. (build_id_verify): Similarly. Don't xfree. (build_id_to_debug_filename): Update. (find_separate_debug_file_by_buildid): Update, don't xfree. ld/ * emultempl/elf32.em (emit_note_gnu_build_id): New static var. Replace all info->emit_note_gnu_build_id refs. (id_note_section_size): Rename from gld${EMULATION_NAME}_id_note_section_size. (struct build_id_info): Delete. (write_build_id): Rename from gld${EMULATION_NAME}_write_build_id_section. Update elf_tdata usage. Style, formatting. (setup_build_id): New function. (gld${EMULATION_NAME}_after_open): Use setup_build_id. --- include/ChangeLog | 13 ++++++++----- include/bfdlink.h | 3 --- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/include/ChangeLog b/include/ChangeLog index a7b145ee1..e3dcb5690 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,7 +1,11 @@ +2013-02-19 Alan Modra + + * bfdlink.h (struct bfd_link_info): Delete emit_note_gnu_build_id. + 2013-02-11 Sriraman Tallam * plugin-api.h (enum ld_plugin_level): Assign integers - explicitly for all values. + explicitly for all values. 2013-02-06 Sandra Loosemore Andrew Jenner @@ -153,8 +157,7 @@ 2012-08-02 Sean Keys - * elf/m68hc11.h: #define E_M68HC11_NO_BANK_WARNING - 0x000000200 + * elf/m68hc11.h: #define E_M68HC11_NO_BANK_WARNING 0x000000200 2012-07-24 Stephan McCamant Dr David Alan Gilbert @@ -173,8 +176,8 @@ 2012-07-05 Sean Keys - * opcode/xgate.h: Changed the format string for mode - XGATE_OP_DYA_MON. + * opcode/xgate.h: Changed the format string for mode + XGATE_OP_DYA_MON. 2012-06-18 Doug Evans diff --git a/include/bfdlink.h b/include/bfdlink.h index bf44dee82..1ac073823 100644 --- a/include/bfdlink.h +++ b/include/bfdlink.h @@ -469,9 +469,6 @@ struct bfd_link_info bfd *input_bfds; bfd **input_bfds_tail; - /* Non-NULL if .note.gnu.build-id section should be created. */ - char *emit_note_gnu_build_id; - /* If a symbol should be created for each input BFD, this is section where those symbols should be placed. It must be a section in the output BFD. It may be NULL, in which case no such symbols