diff options
author | Mark Wielaard <mjw@redhat.com> | 2016-06-14 17:07:11 +0200 |
---|---|---|
committer | Florian Festi <ffesti@redhat.com> | 2016-07-29 18:28:53 +0200 |
commit | 4ec7c396fb9464a3fcff006408871f8175ab169b (patch) | |
tree | 1fa4aaf9b021029ea796427bd8c7e5d463080529 /Makefile.am | |
parent | 41c4dcf507e2208585d6dc0952f59686a3a69d69 (diff) | |
download | rpm-4ec7c396fb9464a3fcff006408871f8175ab169b.tar.gz |
Add sepdebugcrcfix to fixup old style gnu_debuglink CRC checksum.
Some old tools might still use the .gnu_debuglink section to find
separate debuginfo files instead of build-id style lookups. When
dwz has compresses the .debug files the original CRC in the main
ELF file will no longer match. Make sure to run sepdebugcrcfix
after dwz to recalculate the CRC.
The original fix was created by Jan Kratochvil based on code
from GNU binutils BFD. https://bugzilla.redhat.com/show_bug.cgi?id=971119
I added a testcase to make sure the CRCs were all correctly
updated after dwz has run to compress a debuginfo package.
And a change (plus testcase) to make sure implicit suid binaries
didn't accidentially got their suid flag bit.
Signed-off-by: Mark Wielaard <mjw@redhat.com>
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index 157e79d39..08d8c8e3b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -170,6 +170,10 @@ rpmlibexec_PROGRAMS += elfdeps elfdeps_SOURCES = tools/elfdeps.c elfdeps_LDADD = rpmio/librpmio.la elfdeps_LDADD += @WITH_LIBELF_LIB@ @WITH_POPT_LIB@ + +rpmlibexec_PROGRAMS += sepdebugcrcfix +sepdebugcrcfix_SOURCES = tools/sepdebugcrcfix.c +sepdebugcrcfix_LDADD = @WITH_LIBELF_LIB@ endif endif |