binutils-gdb/ld/testsuite/ld-pe
Jon TURNEY 61e2488cd8 Add support for generating and inserting build IDs into COFF binaries.
* peXXigen.c (pe_print_debugdata): New function: Displays the
	contents of the debug directory and decodes codeview entries.
	(_bfd_XXi_swap_debugdir_in, _bfd_XXi_swap_debugdir_out)
	(_bfd_XXi_slurp_codeview_record, _bfd_XXi_write_codeview_record):
	Add functions for reading and writing debugdir and codeview
	records.
	* libpei.h (_bfd_XXi_swap_debugdir_in, _bfd_XXi_swap_debugdir_out)
	(_bfd_XXi_write_codeview_record): Add prototypes and macros.
	* libcoff-in.h (pe_tdata): Add build-id data.
	* libcoff.h: Regenerate.
	* coffcode.h (coff_write_object_contents): Run build_id
	after_write_object_contents hook.

	* pe.h (external_IMAGE_DEBUG_DIRECTORY, _CV_INFO_PDB70)
	(_CV_INFO_PDB20): Add structures and constants for debug directory
	and codeview records.
	* internal.h (internal_IMAGE_DEBUG_DIRECTORY, CODEVIEW_INFO):
	Add structures and constants for internal representation of debug
	directory and codeview records.

	* emultempl/elf32.em (id_note_section_size, read_hex, write_build_id):
	Move code for parsing build-id option and calculating the build-id to...
	* ldbuildid.c: New file.
	* ldbuildid.h: New file.
	* Makefile.am (CFILES, HFILES, OFILES, ld_new_SOURCES): Add new
	files.
	* Makefile.in: Regenerate.
	* ld.texinfo: Update --build-id description to mention COFF
	support.
	* NEWS: Mention support for COFF build ids.
	* emultempl/pe.em (gld${EMULATION_NAME}_handle_option):
	(pecoff_checksum_contents, write_build_id, setup_build_id)
	(gld_${EMULATION_NAME}_after_open):  Handle and implement
	build-id option.
	* emultempl/pep.em: Likewise.
2014-04-08 10:59:43 +01:00
..
aligncomm-1.c strip off +x bits on non-executable/script files 2013-12-07 02:03:03 -05:00
aligncomm-2.c strip off +x bits on non-executable/script files 2013-12-07 02:03:03 -05:00
aligncomm-3.c strip off +x bits on non-executable/script files 2013-12-07 02:03:03 -05:00
aligncomm-4.c strip off +x bits on non-executable/script files 2013-12-07 02:03:03 -05:00
aligncomm.d strip off +x bits on non-executable/script files 2013-12-07 02:03:03 -05:00
basefile1.s
cfi.d
cfi32.d
cfia.s
cfib.s
direct2_client.c
direct2_dll.c
direct2_dll.def
direct_client.c
direct_dll.c
export_dynamic_warning.d
export_dynamic_warning.s strip off +x bits on non-executable/script files 2013-12-07 02:03:03 -05:00
exports.d
exports.s
exports64.d strip off +x bits on non-executable/script files 2013-12-07 02:03:03 -05:00
image_size.d
image_size.s
image_size.t
longsecn-1.d This patch adds a default manifest in to the final links performed by the Cygwin and MinGW targets. 2014-02-27 14:13:43 +00:00
longsecn-2.d This patch adds a default manifest in to the final links performed by the Cygwin and MinGW targets. 2014-02-27 14:13:43 +00:00
longsecn-3.d Add support for generating and inserting build IDs into COFF binaries. 2014-04-08 10:59:43 +01:00
longsecn-4.d Add support for generating and inserting build IDs into COFF binaries. 2014-04-08 10:59:43 +01:00
longsecn-5.d Add support for generating and inserting build IDs into COFF binaries. 2014-04-08 10:59:43 +01:00
longsecn.d This patch adds a default manifest in to the final links performed by the Cygwin and MinGW targets. 2014-02-27 14:13:43 +00:00
longsecn.s strip off +x bits on non-executable/script files 2013-12-07 02:03:03 -05:00
non-c-lang-syms.d strip off +x bits on non-executable/script files 2013-12-07 02:03:03 -05:00
non-c-lang-syms.s Add support for generating and inserting build IDs into COFF binaries. 2014-04-08 10:59:43 +01:00
orphan.d
orphan_nu.d
orphana.s
orphana_nu.s Add support for generating and inserting build IDs into COFF binaries. 2014-04-08 10:59:43 +01:00
orphanb.s
orphand.s
orphane.s
pe-compile.exp Update copyright years 2014-03-05 22:16:15 +10:30
pe-run.exp Update copyright years 2014-03-05 22:16:15 +10:30
pe-run2.exp Update copyright years 2014-03-05 22:16:15 +10:30
pe.exp Update copyright years 2014-03-05 22:16:15 +10:30
secrel.d This patch adds a default manifest in to the final links performed by the Cygwin and MinGW targets. 2014-02-27 14:13:43 +00:00
secrel1.s
secrel2.s
secrel_64.d
tlssec.s strip off +x bits on non-executable/script files 2013-12-07 02:03:03 -05:00
tlssec32.d strip off +x bits on non-executable/script files 2013-12-07 02:03:03 -05:00
tlssec64.d strip off +x bits on non-executable/script files 2013-12-07 02:03:03 -05:00
vers-script-1.d
vers-script-1.ver strip off +x bits on non-executable/script files 2013-12-07 02:03:03 -05:00
vers-script-2.d
vers-script-2.ver strip off +x bits on non-executable/script files 2013-12-07 02:03:03 -05:00
vers-script-3.d
vers-script-3.ver strip off +x bits on non-executable/script files 2013-12-07 02:03:03 -05:00
vers-script-4.d
vers-script-4.ver strip off +x bits on non-executable/script files 2013-12-07 02:03:03 -05:00
vers-script-dll.c strip off +x bits on non-executable/script files 2013-12-07 02:03:03 -05:00