[llvm-commits] [PATCH] Work around an Apple linker bug

Charles Davis cdavis at mymail.mines.edu
Tue Feb 23 09:00:55 PST 2010


While compiling Wine with clang, I discovered a bug in the Apple linker.

When LLVM encounters what it believes to be a UTF-16 string, it places
it in the (__TEXT, __ustring) section. Unfortunately, if a global symbol
is placed there, the linker does not see it and loses the symbol. I have
filed <rdar://problem/7672401> to keep track of this.

This patch disables generation of the (__TEXT, __ustring) section.
UTF-16 string constants will be placed in the (__TEXT, __const) section
instead (as GCC does). This is a temporary workaround until Apple fixes
the linker bug.

Chip
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: rdar-7672401-workaround.patch
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20100223/1c1700be/attachment.ksh>


More information about the llvm-commits mailing list