This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Long link times and elf_bfd_discard_stabs
- From: Nick Clifton <nickc at redhat dot com>
- To: guinan at bluebutton dot com
- Cc: binutils at sources dot redhat dot com
- Date: Thu, 30 Oct 2003 11:12:33 +0000
- Subject: Re: Long link times and elf_bfd_discard_stabs
- References: <Pine.LNX.4.44.0310271838340.28436-100000@gemini.home.net>
Hi Jamie,
> I'm working on a project using mostly C++ which taking a very long
> time to link, using mips-elf-ld from binutils-2.13.
> The "deleting discardable stabs" patch was added almost 2 years ago,
> It looks like it is just trying to mop up unused debugging symbols, is
> that right?
Right.
> Are they harmless if I leave them in there?
Yes and no. If you leave them in then applications will be larger,
taking up more disk space and making them longer to load. But it
should not stop the application from actually working.
> In that case, can I safely disable this by going back to
> ${LDEMUL_FINISH-NULL} in elf32.em?
Yes, but - I would strongly recommend making this decision based on a
command line option. For example you could return without discarding
if "link_info.optimize" was zero.
Cheers
Nick