[PATCH 0/4] Add support for 'ld --build-id' to pe/coff
Jon TURNEY
jon.turney@dronecode.org.uk
Thu Jan 23 17:46:00 GMT 2014
Hi,
Here is a set of patches to add build-id support for pe/coff.
They are loosely based on how adding a build-id is implemented for elf, and is useful in a somewhat similar way
as the build-id is captured by the OS when a MiniDump is written, although the implementation details are
different.
Thanks in advance for your comments.
Jon TURNEY (4):
Add reading/writing of pe/coff debug directory and codeview records
Dump pe/coff debug directory in objdump -p
Factor out common code for supporting 'ld --buildid'
Add ld --build-id support for pe/coff
bfd/coffcode.h | 10 ++-
bfd/libcoff-in.h | 8 ++
bfd/libcoff.h | 8 ++
bfd/libpei.h | 12 +++
bfd/peXXigen.c | 209 ++++++++++++++++++++++++++++++++++++++++++++++++
include/coff/internal.h | 37 +++++++++
include/coff/pe.h | 37 +++++++++
ld/Makefile.am | 9 ++-
ld/NEWS | 2 +
ld/emultempl/elf32.em | 96 ++--------------------
ld/emultempl/pe.em | 197 ++++++++++++++++++++++++++++++++++++++++++++-
ld/emultempl/pep.em | 199 ++++++++++++++++++++++++++++++++++++++++++++-
ld/ldbuildid.c | 145 +++++++++++++++++++++++++++++++++
ld/ldbuildid.h | 39 +++++++++
14 files changed, 910 insertions(+), 98 deletions(-)
create mode 100644 ld/ldbuildid.c
create mode 100644 ld/ldbuildid.h
--
1.8.3.4
More information about the Binutils
mailing list