[llvm-commits] [PATCH] Miscompile Fix: Ensure that we do not constant fold Globals containing ObjC References in GlobalOpt.

John McCall rjmccall at apple.com
Tue Jan 15 13:43:33 PST 2013


On Jan 13, 2013, at 12:37 PM, Owen Anderson <resistor at mac.com> wrote:
> Is it not the same as weak (or perhaps linkonce) linkage?

The string data is uniqued across shared objects; the variables are effectively
a relocation to the string data and are uniqued only within shared objects.
But the uniquing follows the string data, not the symbol name, and is triggered
by the variable's presence in a special section.  Indeed, the symbol name is
completely irrelevant and should be stripped before load-time.

John.



More information about the llvm-commits mailing list