]> git.ipfire.org Git - thirdparty/elfutils.git/commit
strip: Make sure old .shstrab is removed when eu-strip recreates it.
authorMark Wielaard <mark@klomp.org>
Wed, 7 Jun 2017 12:05:36 +0000 (14:05 +0200)
committerMark Wielaard <mark@klomp.org>
Wed, 14 Jun 2017 12:51:33 +0000 (14:51 +0200)
commite0b3232e9a0bc8215ca1be29b1ec6df43811eb87
tree28fc9df73820d6e0475a5a5cc6cc34a84e6b64f7
parent660aafcf78818424248faccf2ccab4ac9deee582
strip: Make sure old .shstrab is removed when eu-strip recreates it.

Although we always recreate the .shstrtab section for the new output
file we never explicitly assumed it could be removed. It might not be
possible to remove it when the section string table is shared with
a symbol table. But if it is removable we should (and recreate it for
the new section list).

Regression introduced in commit elfutils-0.163-33-gdf7dfab.
"Handle merged strtab/shstrtab string tables in strip and unstrip."
Add extra testcase to explicitly check for this case.

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

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