This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: Patch: Support .loc STABS directive on ELF based toolchains.
- To: ian at zembu dot com
- Subject: Re: Patch: Support .loc STABS directive on ELF based toolchains.
- From: Nick Clifton <nickc at cygnus dot com>
- Date: Thu, 30 Sep 1999 10:18:06 +0100
- CC: binutils at sourceware dot cygnus dot com
- Reply-to: nickc at cygnus dot co dot uk
Hi Ian,
: We don't reject .loc outside of a .text section because we are
: mean-hearted. We reject it because it won't work. ECOFF debugging
: information builds a single table of line numbers for an object file.
: That table is implicitly assumed to be attached to the .text section.
: I don't see how to avoid that, given the weird construction of the
: ECOFF symbol table.
:
: If you want to use ECOFF debugging information, I think you need to
: avoid using linkonce sections. Or vice-versa. I recommend using
: straight stabs debugging information instead.
:
: If the debugging information really does work correctly, particularly
: after processing through ld -r, let me know (by work correctly, I mean
: that objdump -dl and gdb can correctly report line numbers for the
: linkonce functions in question).
You are right - it doesn't really work. I was fooled into believing
that it did because some line number information does get through into
the object file, but not the information for the constructors and
destructors.
I withdraw my patch and I will look to see if I can find a way for gcc
to workaround this.
Cheers
Nick