* 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.
The files in this directory are sourced by genscripts.sh, after setting some variables to substitute in, to produce C source files that contain jump tables for each emulation.