[Bug tools/28873] Implement eu-readelf -D
dichen at redhat dot com
sourceware-bugzilla@sourceware.org
Mon Jan 16 13:39:37 GMT 2023
https://sourceware.org/bugzilla/show_bug.cgi?id=28873
--- Comment #6 from Di Chen <dichen at redhat dot com> ---
[Follow the last comment]
For a binary with SYMTAB STRTAB having different order, like upside down, or
having other section in between. eg.
```
$ readelf -Dd /usr/local/go/bin/go
Dynamic section at offset 0x9e5220 contains 19 entries:
Tag Type Name/Value
0x0000000000000004 (HASH) 0xb3c3c0
0x0000000000000006 (SYMTAB) 0xb3c880
0x000000000000000b (SYMENT) 24 (bytes)
0x0000000000000005 (STRTAB) 0xb3c660
0x000000000000000a (STRSZ) 531 (bytes)
0x0000000000000007 (RELA) 0xb3bfd8
0x0000000000000008 (RELASZ) 24 (bytes)
0x0000000000000009 (RELAENT) 24 (bytes)
0x0000000000000003 (PLTGOT) 0xde5100
0x0000000000000015 (DEBUG) 0x0
0x0000000000000001 (NEEDED) Shared library: [libpthread.so.0]
0x0000000000000001 (NEEDED) Shared library: [libc.so.6]
0x000000006ffffffe (VERNEED) 0xb3c360
0x000000006fffffff (VERNEEDNUM) 2
0x000000006ffffff0 (VERSYM) 0xb3c300
0x0000000000000014 (PLTREL) RELA
0x0000000000000002 (PLTRELSZ) 768 (bytes)
0x0000000000000017 (JMPREL) 0xb3bff0
0x0000000000000000 (NULL) 0x0
```
It will mess up the syments (symbol table entry number) calculation.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Elfutils-devel
mailing list