[RFA/solib-svr4] use AT_BASE auxiliary entry to compute load base address

Daniel Jacobowitz drow@false.org
Thu Apr 17 22:32:00 GMT 2008


On Thu, Apr 17, 2008 at 11:31:18PM +0200, Ulrich Weigand wrote:
> Yes, that's on my to-do list anyway ...
> 
> However, even that would not fix the same issue with core files
> (if prelink changed a library between core file generation and 
> use in GDB).

Drat.  And even if that bit is in the core file (likely on at least
some vendor kernels; program headers are in the same page as the
build-id note) we would not know where to look for it.

I don't want to revert the patch, since it fixes a nasty breakage
if you connect to a program when it has just started running but
has gone a few instructions, i.e. the library list is not filled in
yet but the PC is not the dynamic linker entry point.  Is there
really no way to differentiate these two cases?

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Gdb-patches mailing list