summaryrefslogtreecommitdiff
path: root/libbacktrace/elf.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2013-11-18 16:30:44 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2013-11-18 16:30:44 +0000
commitbcddbfd588212678cdc3de05ab7e6cde1c338a9d (patch)
tree5117c0329ff4beb33321858e4be35b3db8b20c54 /libbacktrace/elf.c
parenteb9920549e9e77ad824810dd641735e78f8a27d8 (diff)
downloadgcc-bcddbfd588212678cdc3de05ab7e6cde1c338a9d.tar.gz
* elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204971 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libbacktrace/elf.c')
-rw-r--r--libbacktrace/elf.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/libbacktrace/elf.c b/libbacktrace/elf.c
index c58b74e192f..9a0fd70aed0 100644
--- a/libbacktrace/elf.c
+++ b/libbacktrace/elf.c
@@ -863,12 +863,8 @@ phdr_callback (struct dl_phdr_info *info, size_t size ATTRIBUTE_UNUSED,
fileline elf_fileline_fn;
int found_dwarf;
- /* There is not much we can do if we don't have the module name. If
- the base address is 0, this is probably the executable, which we
- already loaded. */
- if (info->dlpi_name == NULL
- || info->dlpi_name[0] == '\0'
- || info->dlpi_addr == 0)
+ /* There is not much we can do if we don't have the module name. */
+ if (info->dlpi_name == NULL || info->dlpi_name[0] == '\0')
return 0;
descriptor = backtrace_open (info->dlpi_name, pd->error_callback, pd->data,