[LLVMdev] RFC: -fwritable-strings Change
Bill Wendling
isanbard at gmail.com
Tue Jan 27 13:00:20 PST 2009
On Tue, Jan 27, 2009 at 9:06 AM, Anton Korobeynikov
<anton at korobeynikov.info> wrote:
> I'm strongly agains any target-specific and language-specific hacks in the
> generic tree-conversion code. What if we decide to support objc on
> non-darwin platforms someday?
> This is theoretically possible (well, modulo all bunch of apple-local stuff
> arond ;)).
>
> I believe, that TAI should place constant zeros in mergeable const section,
> not in BSS. Could you please send me the .bc file?
>
I should have put this in darwin.h and called it from there. I think
that there is a far more fundamental problem that affects more than
Objective-C. Even with C code, we place a null string in a writable
section, which isn't correct. I've attached the .bc file. The culprit
is the @"\01LC" global. (This is generated with my hack, so it has an
explicit "section".) Any suggestions for a back-end fix would be
welcome, as I'm not a huge fan of hacking the front-end to get the
sections for symbols correct. :-)
-bw
-------------- next part --------------
A non-text attachment was scrubbed...
Name: f.bc
Type: application/octet-stream
Size: 1072 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090127/c58b7d68/attachment.obj>
More information about the llvm-dev
mailing list