summaryrefslogtreecommitdiff
path: root/config/elfutils.spec.in
diff options
context:
space:
mode:
authorDi Chen <dichen@redhat.com>2023-03-27 10:01:05 +0800
committerMark Wielaard <mark@klomp.org>2023-04-18 21:46:53 +0200
commit4d8de4b2fa05495d69d09e1a3d335f24d6bf33ee (patch)
tree3f06b8ca344dc957456da6ed570524b8ca42ad5d /config/elfutils.spec.in
parentce2312975812a1719a2c322aa75e97f96c4f8ca7 (diff)
downloadelfutils-4d8de4b2fa05495d69d09e1a3d335f24d6bf33ee.tar.gz
readelf: display dynamic symtab without section headers
This commit adds a new option "-D/--use-dynamic" to support printing the dynamic symbol table from the PT_DYNAMIC segment. By using the PT_DYNAMIC segment, eu-readelf can go through the contents of dynamic section entries and the values of each tag. From that, we can get the address and size of the dynamic symbol table, the address of the string table, etc. By using the new option "-D/--use-dynamic", eu-readelf can list the symbols without section headers. Example: $ ./src/readelf -Ds a.out 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UNDEF 1: 0000000000000000 0 FUNC GLOBAL DEFAULT UNDEF __libc_start_main@GLIBC_2.34 (2) 2: 0000000000000000 0 NOTYPE WEAK DEFAULT UNDEF __gmon_start__ https://sourceware.org/bugzilla/show_bug.cgi?id=28873 Signed-off-by: Di Chen <dichen@redhat.com>
Diffstat (limited to 'config/elfutils.spec.in')
-rw-r--r--config/elfutils.spec.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/elfutils.spec.in b/config/elfutils.spec.in
index c82a40c5..5d56dfca 100644
--- a/config/elfutils.spec.in
+++ b/config/elfutils.spec.in
@@ -341,6 +341,9 @@ exit 0
%systemd_postun_with_restart debuginfod.service
%changelog
+* Tue Apr 18 2023 Mark Wielaard <mjw@redhat.com> 0.190-1
+- readelf: Support readelf -Ds, --use-dynamic --symbol.
+
* Fri Mar 3 2023 Mark Wielaard <mark@klomp.org> 0.189-1
- configure: eu-nm, eu-addr2line and eu-stack can provide demangled
symbols when linked with libstdc++. Use --disable-demangler to disable.