This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Problems with startup code symbols (Copious warnings)
On Wed, Jun 21, 2006 at 10:10:29AM +0200, Frederic RISS wrote:
> On Tue, 2006-06-20 at 19:34 -0400, Daniel Jacobowitz wrote:
> > On Wed, Jun 21, 2006 at 07:13:21AM +1100, Steven Johnson wrote:
> > > Is it possible to to tell what section the debug info is for?
> >
> > No, at this point, that's exactly the problem. The necessary
> > information is gone.
> >
> > Long term, the correct fix to this is not in GDB anyway. Both linker
> > and compiler fixes have been pursued. Someone just needs to push
> > through on it.
>
> Just out of curiosity, do you have any pointers to these 'pursued
> fixes'?
1. Alan Modra posted an initial implementation of linker support for
debug info editing. The linker would simply discard extra DIEs. But,
it wasn't complete. This was maybe two months ago.
2. The generally accepted Right Fix is to use ELF COMDAT groups
instead of linkonce sections, and then whenever the compiler discards a
section, it can discard the whole group including its DIEs.
--
Daniel Jacobowitz
CodeSourcery