]> git.ipfire.org Git - thirdparty/elfutils.git/commit
elf32_offscn.c: Do not match SHT_NOBITS sections at OFFSET.
authorMark Wielaard <mjw@redhat.com>
Mon, 2 Apr 2012 15:11:25 +0000 (17:11 +0200)
committerMark Wielaard <mjw@redhat.com>
Mon, 2 Apr 2012 15:11:25 +0000 (17:11 +0200)
commit191d1f0b9163593eee8c4f5cbe3e95cabf6ae9a9
tree7d435274549f268ae4273457eaec575e4ec62cb1
parent738c18312e0db36dce5e1cd2cddaf66eb8947f1a
elf32_offscn.c: Do not match SHT_NOBITS sections at OFFSET.

readelf -d doesn't work if a SHT_NOBITS section is right before the actual
.dynamic section at the same offset. elflint also fails on such binaries.
So skip SHT_NOBITS sections at the same offset in [g]elf[32|64]_offscn().
libelf/ChangeLog
libelf/elf32_offscn.c
tests/ChangeLog
tests/Makefile.am
tests/run-elflint-test.sh
tests/run-readelf-d.sh [new file with mode: 0755]
tests/testlib_dynseg.so.bz2 [new file with mode: 0755]