summaryrefslogtreecommitdiff
path: root/libdwfl/dwfl_report_elf.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2010-06-29 18:47:17 -0700
committerRoland McGrath <roland@redhat.com>2010-06-29 18:47:17 -0700
commitbeee55f6d64ddbdfb2fe1ff9c0afc7000e01dc25 (patch)
tree091db1eb73faf47a99ae6aafae9b585259c3c620 /libdwfl/dwfl_report_elf.c
parent685083a6281c9e4c5ee3e4ce4e9423a6e88a1ef4 (diff)
downloadelfutils-beee55f6d64ddbdfb2fe1ff9c0afc7000e01dc25.tar.gz
Wire libdw relocation support into libdwfl.
Diffstat (limited to 'libdwfl/dwfl_report_elf.c')
-rw-r--r--libdwfl/dwfl_report_elf.c2
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
{