Displaying 2 results from an estimated 2 matches for "decl_section_nam".
Did you mean:
decl_section_name
2009 Jan 27
0
[LLVMdev] RFC: -fwritable-strings Change
Hi Bill,
> My GCC-fu isn't great. Could someone review this to see if I broke anything?
is there no better way?! Is this an objc problem, a darwin problem or...?
If it is an objc problem, can't you just have objc set the section on the
strings (DECL_SECTION_NAME) when it creates them? Anything but this patch,
please! :)
Ciao,
Duncan.
2009 Jan 27
4
[LLVMdev] RFC: -fwritable-strings Change
There is a problem with Objective-C code where a null string is placed
in the wrong section. If we have this code:
#include <Foundation/Foundation.h>
void foo() {
NSLog(@"");
}
The null string is defined like this:
.const
.lcomm LC,1,0 ## LC
Causing our linker to go nuts, because it expects anonymous strings to
be in the __cstring section. I came up with the attached