This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problems with startup code symbols (Copious warnings)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]