This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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: excessive stab information


On Tue, Apr 19, 2005 at 12:42:56PM +0100, Nick Clifton wrote:
> Hi Ian,
> 
> > Ian Lance Taylor wrote:
> 
> >There has been some work done on not linking debug information from
> >the object files into the executable, and having gdb fetch it from the
> >object files, but I'm not sure what the status of that is.  I didn't
> >see anything in the linker docs about it.
> 
> FYI:  This feature is fully working.  The reason it is not documented in 
>  the linker docs however is because it is not performed by the linker. 
>  It is performed by the objcopy program using the --strip-debug, 
> --only-keep-debug and --add-gnu-debuglink switches.  You can find out 
> more about this from the binutils documentation.

That's not quite the same thing; this links debug information into the
executable, then copies it elsewhere.  Ian's describing an approach of
leaving the debug info in unlinked object files and then referencing it
from the executable - never including it at all.

I believe Sun's compiler does this.

-- 
Daniel Jacobowitz
CodeSourcery, LLC


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