patch was: dwarf2 debug dependent upon GAS?
Ian Lance Taylor
ian@cygnus.com
Thu Mar 11 18:02:00 GMT 1999
From: Jason Merrill <jason@cygnus.com>
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
More information about the Bfd
mailing list