This is the mail archive of the
mailing list for the GCC project.
Re: Merging debug strings
- From: <tm_gccmail at mail dot kloo dot net>
- To: Ben Young <ben dot young at transversal dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 2 Oct 2003 11:29:19 -0700 (PDT)
- Subject: Re: Merging debug strings
On Thu, 2 Oct 2003, Ben Young wrote:
> Hi there!
> This is my first time posting on this mailing list, so if I have got the
> format wrong, or if I am posting to the wrong list please bear with me.
> Our company untill recently was have severe problems with our link times.
> Looking at various mailing lists it appeared the problem could be in the
> string constant merging algorithm, but -fno-merge-constants did not appear
> to help.
> Investigating further we noticed that nearly all the time was stend
> merging the strings in the debug_str sections. This was confirmed by the
> fact that linking without -g was very quick. As there doesn't seem to be a
> option for disableing this string merging, and as we still needed the
> debug symbols we produced this patch.
> It has been tested with gcc 3.2.1 and 3.2.3
> Please could you take a look and see whether it it suitable for including
> in gcc or whether we have missed the point and should be doing something
This really should be on the binutils mailing list, but is ld hashing the
strings? This sounds suspiciously like it's doing a linear search.