diff options
author | Roland McGrath <roland@redhat.com> | 2010-06-29 18:47:17 -0700 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 2010-06-29 18:47:17 -0700 |
commit | beee55f6d64ddbdfb2fe1ff9c0afc7000e01dc25 (patch) | |
tree | 091db1eb73faf47a99ae6aafae9b585259c3c620 /libdwfl/dwfl_report_elf.c | |
parent | 685083a6281c9e4c5ee3e4ce4e9423a6e88a1ef4 (diff) | |
download | elfutils-beee55f6d64ddbdfb2fe1ff9c0afc7000e01dc25.tar.gz |
Wire libdw relocation support into libdwfl.
Diffstat (limited to 'libdwfl/dwfl_report_elf.c')
-rw-r--r-- | libdwfl/dwfl_report_elf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libdwfl/dwfl_report_elf.c b/libdwfl/dwfl_report_elf.c index 062a647f..0a10ad1b 100644 --- a/libdwfl/dwfl_report_elf.c +++ b/libdwfl/dwfl_report_elf.c @@ -250,6 +250,8 @@ __libdwfl_report_elf (Dwfl *dwfl, const char *name, const char *file_name, m->main.elf = elf; m->main.bias = bias; m->e_type = ehdr->e_type; + if (unlikely (elf_getshdrstrndx (elf, &m->main.shstrndx))) + m->main.shstrndx = SHN_UNDEF; } else { |