------- Additional Comments From drow at false dot org 2009-06-19 21:13 -------
Subject: Re: New: ld merging smaller strings into larger
strings?
On Fri, Jun 19, 2009 at 08:59:39PM -0000, ianw at vmware dot com wrote:
> I'm quite unsure why the final def is merged out? The documentation suggests
> the merging will be done at the level of a null terminated string [1]; if
> this
> is not so maybe it could be made more clear?
This is deliberate; without doing pointer arithmetic, it's impossible
to distinguish the read only string "def\0" from "abcdef\0"+3, so the
linker saves space in your binary.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10302
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
_______________________________________________
bug-binutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-binutils