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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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",@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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to