]> git.ipfire.org Git - thirdparty/elfutils.git/commit
readelf: Don't consider padding DT_NULL as dynamic section entry
authorDi Chen <dichen@redhat.com>
Tue, 1 Mar 2022 12:44:38 +0000 (20:44 +0800)
committerMark Wielaard <mark@klomp.org>
Tue, 19 Apr 2022 08:13:11 +0000 (10:13 +0200)
commit5b497d8da4920bf7b63a4aa3752cf580b3ad654c
tree974a3f31a9a70946bf9bb4aea89af4ad2b7aa210
parent21f089d190ad5f5ebbbbea1a3e1db1acfec1dbe9
readelf: Don't consider padding DT_NULL as dynamic section entry

when using `$ eu-readelf -d {FILE}` to get the number of dynamic
section entris, it wrongly counts the padding DT_NULLs as dynamic
section entries. However, DT_NULL Marks end of dynamic section.
They should not be considered as dynamic section entries.

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

Signed-off-by: Di Chen <dichen@redhat.com>
src/ChangeLog
src/readelf.c
tests/ChangeLog
tests/alldts.c
tests/run-alldts.sh
tests/run-readelf-d.sh