[LLVMbugs] [Bug 16232] New: clang escapes quotes in user specified section names

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jun 5 04:11:24 PDT 2013


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: unassignedclangbugs at nondot.org
          Reporter: eisinger at google.com
                CC: llvmbugs at cs.uiuc.edu
    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\", at nobits#"))) buf[1];

Here's the assembly:

        .type   buf, at object             # @buf
        .section        ".foo,\"awx\", at nobits#","aw", at 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", at nobits#,"aw", at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130605/a67e77d9/attachment.html>


More information about the llvm-bugs mailing list