summaryrefslogtreecommitdiff
path: root/tests/run-readelf-self.sh
diff options
context:
space:
mode:
authorDi Chen <dichen@redhat.com>2023-01-13 20:12:43 +0800
committerDi Chen <dichen@redhat.com>2023-02-10 20:05:32 +0800
commitbdc19de94bff8f8812611b9ba8c0116a650d0fb5 (patch)
tree45183cdb95c6c263d81418b1763b71182b923603 /tests/run-readelf-self.sh
parenta5b07cdf9c491fb7a4a16598c482c68b718f59b9 (diff)
downloadelfutils-users/dichen/readelf-28873.tar.gz
readelf: display dynamic symtab without section headersusers/dichen/readelf-28873
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 'tests/run-readelf-self.sh')
0 files changed, 0 insertions, 0 deletions