]> git.ipfire.org Git - thirdparty/elfutils.git/commit
tests: elfstrmerge warn about STT_SECTION symbol for shstrhndx.
authorMark Wielaard <mjw@redhat.com>
Thu, 31 Dec 2015 22:03:20 +0000 (23:03 +0100)
committerMark Wielaard <mjw@redhat.com>
Tue, 5 Jan 2016 07:55:44 +0000 (08:55 +0100)
commit29ee512fb8a71b0d22065c369a2117ff758bdf5e
treed73bf06adc50534b8e590e85cd6ac81f0f4deaa9
parent193396a9e2d564a35e1e6c5584276d8e88abf2ed
tests: elfstrmerge warn about STT_SECTION symbol for shstrhndx.

Old linkers might have created an STT_SECTION symbol for the section
header string table section, which isn't actually used.  For now just
warn about such symbols. If such a symbol would actually really be used
(but why?) then we would have to handle it by removing it and rewriting
the symbol table.

This is a testsuite only change, but includes an extra test with files
that have such STT_SECTION symbols to make sure it will be handled in
case we "upgrade" the elfstrmerge test to a real utility.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
tests/ChangeLog
tests/Makefile.am
tests/elfstrmerge.c
tests/run-elfstrmerge-test.sh [new file with mode: 0755]