From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Lance Taylor To: jason@cygnus.com Cc: robertlipe@usa.net, bfd@cygnus.com Subject: Re: patch was: dwarf2 debug dependent upon GAS? Date: Thu, 11 Mar 1999 18:02:00 -0000 Message-id: <199903120202.SAA25624@rtl.cygnus.com> References: X-SW-Source: 1999/msg00041.html From: Jason Merrill Date: 11 Mar 1999 11:20:22 -0800 > I assume that fixing this would dramatically improve link time for > DWARF2? > I would not expect to see a dramatic improvement, but maybe there is > something I am overlooking. I was thinking that a bunch of relocs to the same symbol would resolve faster than relocs to different symbols; perhaps that's not the case. No, it isn't. Each reloc contains a symbol index. When the linker performs the relocations, it first computes a table of all the symbol values; the linker must perform this operation anyhow in order to generate the symbol table of the output file. Then the linker loops through the relocs, resolving them. Calculating the value of a symbol is just a table lookup. Ian