summaryrefslogtreecommitdiffstats
path: root/libdwfl/link_map.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdwfl/link_map.c')
-rw-r--r--libdwfl/link_map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdwfl/link_map.c b/libdwfl/link_map.c
index 1c298a8e..623b3062 100644
--- a/libdwfl/link_map.c
+++ b/libdwfl/link_map.c
@@ -784,7 +784,7 @@ dwfl_link_map_report (Dwfl *dwfl, const void *auxv, size_t auxv_size,
784 GElf_Xword dyn_filesz = 0; 784 GElf_Xword dyn_filesz = 0;
785 GElf_Addr dyn_bias = (GElf_Addr) -1; 785 GElf_Addr dyn_bias = (GElf_Addr) -1;
786 786
787 if (phdr != 0 && phnum != 0) 787 if (phdr != 0 && phnum != 0 && phent != 0)
788 { 788 {
789 Dwfl_Module *phdr_mod; 789 Dwfl_Module *phdr_mod;
790 int phdr_segndx = INTUSE(dwfl_addrsegment) (dwfl, phdr, &phdr_mod); 790 int phdr_segndx = INTUSE(dwfl_addrsegment) (dwfl, phdr, &phdr_mod);