Subject: Re: CVS commit: src/sys
To: Christos Zoulas <christos@netbsd.org>
From: David Laight <david@l8s.co.uk>
List: source-changes
Date: 05/17/2005 07:09:47
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!)

	David

-- 
David Laight: david@l8s.co.uk