diff options
| author | Mark Wielaard <[email protected]> | 2018-08-04 22:34:32 +0200 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2018-09-14 00:20:49 +0200 |
| commit | b14633d41673bb1903c887cb9ffd55fe700c4eb1 (patch) | |
| tree | dcd91404f2f7ad1b57189864470abe40d5cd5c3c /src/unstrip.c | |
| parent | 583d106753e805e75a6cbfeab79aa2965e042f69 (diff) | |
libdw: dwarf_begin_elf should use elf_getshdrstrndx to get section names.
dwarf_begin_elf used the Ehdr e_shstrndx to get the shdr string table
section. This does not work for ELF files with more than SHN_LORESERVE
sections. Use elf_getshdrstrndx, and don't pass around the ehdr.
Add a simple testcase that fails before the patch because dwarf_begin
return an error.
Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'src/unstrip.c')
0 files changed, 0 insertions, 0 deletions
