]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
authorJakub Jelinek <jakub@redhat.com>
Mon, 18 Nov 2013 16:30:44 +0000 (17:30 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 18 Nov 2013 16:30:44 +0000 (17:30 +0100)
From-SVN: r204971

libbacktrace/ChangeLog
libbacktrace/elf.c

index 8d305a9e409be6218c8545dfcbf3b5dcf55e733b..b7169da610812acabd8ed1699bc95af3f45df76c 100644 (file)
@@ -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
index c58b74e192f57e90782939b9bd921edec185ecdc..9a0fd70aed06a0250c6445f16f3234aa5ed0a5c4 100644 (file)
@@ -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,