bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/10302] ld merging smaller strings into larger strings?


From: drow at false dot org
Subject: [Bug ld/10302] ld merging smaller strings into larger strings?
Date: 19 Jun 2009 21:13:36 -0000

------- 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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]