+
+ * elf-bfd.h (struct elf_obj_tdata): Revert last change.
+ Add after_write_object_contents, after_write_object_contents_info.
+ * elf.c (_bfd_elf_write_object_contents): Revert last change.
+ Instead, call after_write_object_contents if set.
+
* bfd-in.h: (BFD_HOST_64BIT_LONG_LONG): New.
+
+ * emultempl/elf32.em (struct build_id_info): New type.
+ (gld${EMULATION_NAME}_id_note_section_size): New function.
+ (gld${EMULATION_NAME}_write_build_id_section): New function.
+ (gld${EMULATION_NAME}_after_open): Use them.
+ (DEFAULT_BUILD_ID_STYLE): Change to "sha1".
+ * ld.texinfo (Options): Mention --build-id=sha1.
+
+ * sha1.h: New file (from gnulib).
+ * sha1.c: New file (from gnulib).
+ * Makefile.am (CFILES, HFILES, OFILES, ld_new_SOURCES): Add them.
+ (sha1.o): New target.
+ * Makefile.in: Regenerated.
+
* ldlang.c (strip_excluded_output_sections): Don't ignore sections