ld 2.13.2.1 taking ~37 minutes to link file
Ken Faiczak
kfaiczak@SANDVINE.com
Fri Feb 21 18:54:00 GMT 2003
For our embedded system (mips-wrs-vxworks)
the final image is linked once -r
it then munches the tmp.o that is produced to get
symbols and ctor/dtor/eh_frame stuff
and then performs the final link and locate it
Upgrading from 2.11.2 to 2.13.2.1 takes the final link from ~30s to
37 minutes.
tracking it done somewhat
in elf32_mips_discard_info()
it spends all this time go through the .pdr section
calling elf_reloc_symbol_deleted_p()
the raw size is 798912
if I remove the .pdr section which our embedded system does not
use anyway the link goes back to ~30s.
It seems this is needed for gdb to be able to do stack tracing etc..
so it would be nice to have but @ 30+minutes
Any thoughts as to why this is so slow.
System is
binutils-2.13.2.1
cygwin 1.3.19
Win 2K
More information about the Binutils
mailing list