Subject: Re: CVS commit: src/sys
To: David Laight <david@l8s.co.uk>
From: Christos Zoulas <christos@zoulas.com>
List: source-changes
Date: 05/17/2005 08:07:43
On May 17, 7:09am, david@l8s.co.uk (David Laight) wrote:
-- Subject: Re: CVS commit: src/sys
| 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.
christos