summaryrefslogtreecommitdiff
path: root/libbacktrace
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2013-11-18 17:30:44 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2013-11-18 17:30:44 +0100
commit582f5a2df8331e51cbe2e34437c8bd0d6adf756f (patch)
tree5117c0329ff4beb33321858e4be35b3db8b20c54 /libbacktrace
parentaadce58599c613a7f23ec9e250497a6540cf64da (diff)
downloadgcc-582f5a2df8331e51cbe2e34437c8bd0d6adf756f.tar.gz
* elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
From-SVN: r204971
Diffstat (limited to 'libbacktrace')
-rw-r--r--libbacktrace/ChangeLog4
-rw-r--r--libbacktrace/elf.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/libbacktrace/ChangeLog b/libbacktrace/ChangeLog
index 8d305a9e409..b7169da6108 100644
--- a/libbacktrace/ChangeLog
+++ b/libbacktrace/ChangeLog
@@ -1,3 +1,7 @@
+2013-11-18 Jakub Jelinek <jakub@redhat.com>
+
+ * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
+
2013-11-16 Ian Lance Taylor <iant@google.com>
* backtrace.h (backtrace_create_state): Correct comment about
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,