]> git.ipfire.org Git - thirdparty/elfutils.git/commit
strip: Only sanity check symbols to not discarded sections for debug file.
authorMark Wielaard <mjw@redhat.com>
Sun, 4 Oct 2015 21:47:47 +0000 (23:47 +0200)
committerMark Wielaard <mjw@redhat.com>
Fri, 9 Oct 2015 09:22:00 +0000 (11:22 +0200)
commit3a45dbbe7e1862e72bc886fa7f12a5c5c09311e0
treeb83ebacc89bfeedb8402e4efcdd71a3a91590bf9
parent86ed7f7f53179d7a893329e6b9851dbb75aba405
strip: Only sanity check symbols to not discarded sections for debug file.

We can only sanity check the symbols to discarded sections when creating a
debug file. Otherwise we won't keep track of debug_data. This can trigger
erroneously when there are relocation symbols in the symtab for a .debug
section but we are not putting those symbols in a separate .debug file.

Adjust run-strip-test.sh to always run in-place strip size check even
for ET_REL files. Before this fix the sanity check would trigger for
some ET_REL files because they contained such relocation symbols to
.debug sections (but debug_data would be NULL because -f wasn't used).

Signed-off-by: Mark Wielaard <mjw@redhat.com>
src/ChangeLog
src/strip.c
tests/run-strip-test.sh