http://llvm.org/bugs/show_bug.cgi?id=16232
Bug ID: 16232
Summary: clang escapes quotes in user specified section names
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
The following code results in an invalid section definition as clang escapes
the " characters in the section name
char __attribute__((section(".foo,\"awx\",@nobits#"))) buf[1];
Here's the assembly:
.type buf,@object # @buf
.section ".foo,\"awx\",@nobits#","aw",@progbits
.globl buf
buf:
.zero 1
.size buf, 1
GCC doesn't escape the quotes, and thus produces the desired result:
.globl buf
.section .foo,"awx",@nobits#,"aw",@progbits
.type buf, @object
.size buf, 1
buf:
.zero 1
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs