Subject: Re: CVS commit: src/sys
To: Christos Zoulas <christos@zoulas.com>
From: Perry E. Metzger <perry@piermont.com>
List: source-changes
Date: 05/17/2005 10:30:48
christos@zoulas.com (Christos Zoulas) writes:
> | On Tue, May 17, 2005 at 04:14:58AM +0000, Christos Zoulas wrote:
> | > 
> | > Yes, it was a cool trick >20 years ago to use "0123456789abcdef"[a] to
> | > implement, xtoa(), but I think defining the samestring 50 times is a bit
> | > too much.
> | 
> | gcc probably puts "0123456789abcdef" into the .rodata.str1.1 section
> | and ld will then merge the strings that come from different source files.
> | 
> | (I discovered this feature when it went horribly wrong!)
>
> Not if it is not const.

gcc4 no longer has writable strings...

Perry