[PATCH] libdwfl: test dwflsyms on ET_EXEC with minisymtab

2014-03-11 Thread Josh Stone
This adds testfilebaxmin, an ET_EXEC binary with .gnu_debugdata that doesn't match the load address of the main file. A previous bug made this trigger a kernel heuristic that forces the module to act like ET_DYN, which makes things like dwfl_module_relocate_address report relative addresses rather

NO_UNWIND error with libdw on Powerpc

2014-03-11 Thread Sukadev Bhattiprolu
When trying to add libdw support for Powerpc in the Linux perf tool, I am getting the DWARF error NO_UNWIND. Following is the rough sequence of calls to libdw are from the perf tool: dwfl = dwfl_begin() dwfl_addrmodule(dwfl, instruction_pointer); dwfl_attach_state(dwfl,

Re: [PATCH 2/2] libdwfl: elf_from_remote_memory only trust shdrs of last file-only segment.

2014-03-11 Thread Jan Kratochvil
On Mon, 10 Mar 2014 21:27:54 +0100, Mark Wielaard wrote: > Normally we either get all of the shdrs or can easily detect that the > end of the ELF file (where the shdrs are normally located) doesn't fall > completely in the last segment mapped in. The exception is needed only > in some corner cases

Re: find_aux_sym triggers a kernel heuristic

2014-03-11 Thread Mark Wielaard
On Mon, 2014-03-10 at 14:37 -0700, Josh Stone wrote: > On 03/10/2014 02:23 PM, Mark Wielaard wrote: > > On Fri, 2014-03-07 at 17:39 -0800, Josh Stone wrote: > >> Maybe this only needs to add a check that file == &mod->main > > > > Yes, I think that would be the correct thing to do. Both find_dw an