Problems with startup code symbols (Copious warnings)

Daniel Jacobowitz drow@false.org
Tue Jun 20 12:23:00 GMT 2006


On Mon, Jun 19, 2006 at 10:15:56AM +0200, Frederic RISS wrote:
> What about looking at section VMAs? If one loadable section has a VMA of
> 0 then we can't discard debug info with low_pc == 0. If no section lives
> at address 0 then low_pc == 0  implies that the relocations for this
> info couldn't be applied because the code has vanished.
> I'm sure I missed somethnig in the general case, but I've added
> something like this as a post-load pass in a target_so_ops I implemented
> some time ago and it worked well.

The problem is that this only works for binaries which _either_ use
linkonce sections or code at zero.  A binary with both would still not
work very well.

Is that an improvement?  I guess so.

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Gdb mailing list