From: Jakub Jelinek Date: Mon, 18 Nov 2013 16:30:44 +0000 (+0100) Subject: * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally. X-Git-Tag: releases/gcc-4.9.0~2693 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=582f5a2df8331e51cbe2e34437c8bd0d6adf756f;p=thirdparty%2Fgcc.git * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally. From-SVN: r204971 --- diff --git a/libbacktrace/ChangeLog b/libbacktrace/ChangeLog index 8d305a9e409b..b7169da61081 100644 --- a/libbacktrace/ChangeLog +++ b/libbacktrace/ChangeLog @@ -1,3 +1,7 @@ +2013-11-18 Jakub Jelinek + + * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally. + 2013-11-16 Ian Lance Taylor * backtrace.h (backtrace_create_state): Correct comment about diff --git a/libbacktrace/elf.c b/libbacktrace/elf.c index c58b74e192f5..9a0fd70aed06 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,