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 2010-03-31 Kai TIetz <kai.tietz@onevision.com> 2010-03-31 16:34:12 +00:00
cfi.d Assorted x86 testsuite fixes. 2013-11-02 15:31:16 +10:30
cfi32.d * dw2gencfi.c (dwcfi_seg_list): New struct. 2011-04-26 15:28:08 +00:00
cfia.s * dw2gencfi.c (dwcfi_seg_list): New struct. 2011-04-26 15:28:08 +00:00
cfib.s * dw2gencfi.c (dwcfi_seg_list): New struct. 2011-04-26 15:28:08 +00:00
direct2_client.c 2009-11-15 Kai Tietz <kai.tietz@onevision.com> 2009-11-15 07:52:45 +00:00
direct2_dll.c 2009-11-15 Kai Tietz <kai.tietz@onevision.com> 2009-11-15 07:52:45 +00:00
direct2_dll.def 2009-11-15 Kai Tietz <kai.tietz@onevision.com> 2009-11-15 07:52:45 +00:00
direct_client.c Commit missing pieces. 2006-12-19 01:51:02 +00:00
direct_dll.c Commit missing pieces. 2006-12-19 01:51:02 +00:00
export_dynamic_warning.d * ld-pe/export_dynamic_warning.d (#warning): Fix regex pattern. 2009-04-02 16:44:23 +00:00
export_dynamic_warning.s strip off +x bits on non-executable/script files 2013-12-07 02:03:03 -05:00
exports.d Committed on behalf of 2009-05-17 05:10:21 +00:00
exports.s Committed on behalf of 2009-05-17 05:10:21 +00:00
exports64.d strip off +x bits on non-executable/script files 2013-12-07 02:03:03 -05:00
image_size.d * ld-pe/image_size.d (#target): Also run test on Cygwin and x86_64 2009-04-03 09:25:32 +00:00
image_size.s bfd/ 2007-03-22 15:52:29 +00:00
image_size.t bfd/ 2007-03-22 15:52:29 +00:00
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 * ld-elf/orphan3.d, * ld-elf/orphan3a.s, * ld-elf/orphan3b.s, 2009-05-16 01:56:44 +00:00
orphan_nu.d 2010-04-05 Kai Tietz <kai.tietz@onevision.com> 2010-04-05 09:02:58 +00:00
orphana.s * ld-elf/orphan3.d, * ld-elf/orphan3a.s, * ld-elf/orphan3b.s, 2009-05-16 01:56:44 +00:00
orphana_nu.s Add support for generating and inserting build IDs into COFF binaries. 2014-04-08 10:59:43 +01:00
orphanb.s * ld-elf/orphan3.d, * ld-elf/orphan3a.s, * ld-elf/orphan3b.s, 2009-05-16 01:56:44 +00:00
orphand.s * ld-elf/orphan3.d, * ld-elf/orphan3a.s, * ld-elf/orphan3b.s, 2009-05-16 01:56:44 +00:00
orphane.s * ld-elf/orphan3.d, * ld-elf/orphan3a.s, * ld-elf/orphan3b.s, 2009-05-16 01:56:44 +00:00
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 * ld-pe/pe.exp: Special diff file for x86_64-mingw target. 2007-08-06 14:41:51 +00:00
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 * ld-pe/pe-run.exp (proc test_direct_link_dll): Always pass 2009-06-18 02:47:51 +00:00
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 bfd/ChangeLog 2009-05-04 12:09:30 +00:00
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 * ld-pe/pe-run.exp (proc test_direct_link_dll): Always pass 2009-06-18 02:47:51 +00:00
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 * ld-pe/pe-run.exp (proc test_direct_link_dll): Always pass 2009-06-18 02:47:51 +00:00
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