Long link times and elf_bfd_discard_stabs
Daniel Jacobowitz
drow@mvista.com
Mon Oct 27 23:50:00 GMT 2003
On Mon, Oct 27, 2003 at 06:41:26PM -0500, Jamie Guinan wrote:
>
> Hi,
>
> 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.
>
> My host platform is Linux 2.4.22, so I was able to use oprofile,
> and easily find what's taking so much time:
>
> vma samples % symbol name
> 08087384 21440225 81.8378 _bfd_elf32_reloc_symbol_deleted_p
> 080503ec 3260410 12.4451 print_one_symbol
> 080642d8 412356 1.5740 bfd_hash_traverse
> 0804e914 190403 0.7268 lang_output_section_find
>
> The "deleting discardable stabs" patch was added almost 2 years ago,
>
> http://sources.redhat.com/ml/binutils/2001-11/msg00305.html
>
> My questions:
>
> It looks like it is just trying to mop up unused debugging symbols, is
> that right?
>
> Are they harmless if I leave them in there?
It may upset GDB. Or it may not, I'm not really sure.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
More information about the Binutils
mailing list