https://bugs.llvm.org/show_bug.cgi?id=43795
Bug ID: 43795
Summary: error: expected absolute expression
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: MC
Assignee: unassignedb...@nondot.org
Reporter: caij2...@gmail.com
CC: llvm-bugs@lists.llvm.org
While building Linux kernel for 32-bit ARM with LLVM's integrated assembler, I
ran into the following error:
$ ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make -j32 CC=clang AS=clang
arch/arm/mm/proc-v7.o
arch/arm/mm/proc-v7.S:169:143: error: expected absolute expression
.pushsection ".alt.smp.init", "a" ; .long 9998b ;9997: orr r1, r1, #((1 << 0) |
(1 << 6))|(3 << 3) ; .if . - 9997b == 2 ; nop ; .endif ; .if . - 9997b != 4 ;
.error "ALT_UP() content must assemble to exactly 4 bytes"; .endif ;
.popsection
The reason is in "if . - 9997b == 2" directive the temporary label created for
the dot symbol and 9997 get assigned to two adjacent MCFragments in the same
MCSection.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs