[LLVMbugs] [Bug 24064] New: clang integrated assembler doesn`t support .pushsection

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jul 8 07:27:32 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=24064

            Bug ID: 24064
           Summary: clang integrated assembler doesn`t support
                    .pushsection
           Product: tools
           Version: 3.6
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: llvm-as
          Assignee: unassignedbugs at nondot.org
          Reporter: npl at chello.at
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

I am trying to use the popular DEFINE_GDB_PY_SCRIPT macro, but for arm the
assembler will fail with:
tmp/clangasm.S:1:41: error: expected '@<type>', '%<type>' or "<type>"

/* compile the below with clang  -target arm-none-eabi -c '/tmp/clangasm.S' */

.pushsection ".debug_gdb_scripts", "MS", at progbits,1
.byte 1 /* Python */
.asciz "whatkillsusmakesusdeader.py"
.popsection

/* Bonus section!! */
.sect "kernel_func"
mrc p15, 0, r15, c7, c10, 3
MRC     P15, 0, R3, C3, c0, 0
MCR     P15, 0, R1, C3, c0, 0
mrc p15, 0, r15, c7, c14, 3

-- 
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/20150708/a381601c/attachment.html>


More information about the llvm-bugs mailing list