]> git.ipfire.org Git - thirdparty/elfutils.git/commit
strip: Files with symbols referring to non-existing sections are illformed
authorMark Wielaard <mark@klomp.org>
Wed, 27 Mar 2019 20:54:06 +0000 (21:54 +0100)
committerMark Wielaard <mark@klomp.org>
Wed, 27 Mar 2019 20:57:21 +0000 (21:57 +0100)
commitf03ac75239e0981deaf4aa18f66f423bcc5ce051
treedcc6a6a488695fa1d45abf046952724f9221a747
parent6bd060a23f43a842fbc37dd1bb8d6d7964eda36e
strip: Files with symbols referring to non-existing sections are illformed

The check added in commit 4540ea98c "strip: Fix check test for SHN_XINDEX
symbol" was not complete. The (extended) section index should also exist.
If it doesn't exist, mark the file as illformed.

https://sourceware.org/bugzilla/show_bug.cgi?id=24385

Signed-off-by: Mark Wielaard <mark@klomp.org>
src/ChangeLog
src/strip.c