This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] give .comment sections SHF_MERGE|SHF_STRINGS
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Roland McGrath <roland at redhat dot com>
- Cc: binutils at sources dot redhat dot com, Andreas Schwab <schwab at redhat dot com>, Nick Clifton <nickc at redhat dot com>
- Date: Fri, 24 Jul 2009 15:15:23 -0700
- Subject: Re: [PATCH] give .comment sections SHF_MERGE|SHF_STRINGS
- References: <20090724190834.36DC23CCB@magilla.sf.frob.com>
On Fri, Jul 24, 2009 at 12:08 PM, Roland McGrath<roland@redhat.com> wrote:
> The compiler-generated .ident strings linked together tend all to be the
> same, resulting in giant .comment sections with a duplicate string for each
> translation unit. ?We have the technology. ?We can make them smaller, faster,
> better than before.
>
> This looks obviously trivial and safe. ?But I can't be bothered to actually
> test it or anything. ?Anyone inspired?
How about making it comdat?
--
H.J.