Re: [PATCH] Fix libbacktrace on prelinked shared libraries

2013-11-18 Thread Ian Lance Taylor
On Mon, Nov 18, 2013 at 8:46 AM, Jakub Jelinek wrote: > > 2013-11-18 Jakub Jelinek > > * elf.c (SHN_UNDEF): Define. > (elf_initialize_syminfo): Add base_address argument. Ignore symbols > with st_shndx == SHN_UNDEF. Add base_address to address fields. > (elf_ad

Re: [PATCH] Fix libbacktrace on prelinked shared libraries

2013-11-18 Thread Jakub Jelinek
On Mon, Nov 18, 2013 at 08:29:05AM -0800, Ian Lance Taylor wrote: > On Mon, Nov 18, 2013 at 5:11 AM, Jakub Jelinek wrote: > > > > info->dlpi_addr == 0 is true for executables (but those have also > > info->dlpi_name set to ""), but not just for those, it is true also > > for successfully prelinked

Re: [PATCH] Fix libbacktrace on prelinked shared libraries

2013-11-18 Thread Ian Lance Taylor
On Mon, Nov 18, 2013 at 5:11 AM, Jakub Jelinek wrote: > > info->dlpi_addr == 0 is true for executables (but those have also > info->dlpi_name set to ""), but not just for those, it is true also > for successfully prelinked shared libraries or any other libraries that > have been linked at non-zero

[PATCH] Fix libbacktrace on prelinked shared libraries

2013-11-18 Thread Jakub Jelinek
Hi! info->dlpi_addr == 0 is true for executables (but those have also info->dlpi_name set to ""), but not just for those, it is true also for successfully prelinked shared libraries or any other libraries that have been linked at non-zero offset and the dynamic linker managed to mmap them where th