[patch] ld speedup 1/3 (suffix merge)

Jakub Jelinek jakub@redhat.com
Thu Sep 18 18:31:00 GMT 2003


On Thu, Sep 18, 2003 at 05:22:12PM +0200, Jakub Jelinek wrote:
> This patch seems to do all the string merging as current CVS merge.c
> only if alignment == entsize (well, in that case it might create the
> section even entsize bytes smaller by merging '\0' into some string).

I should note that alignment > entsize merging is important.
On IA-32 just strings longer or equal to 32 bytes get alignment > 1,
but on lots of other arches each string is aligned to typically 4 or 8
bytes.
.debug_str (ie. largest user of string merging these days) is entsize 1
alignment 1 on all arches though.

	Jakub



More information about the Binutils mailing list