https://bugs.llvm.org/show_bug.cgi?id=45248
Bug ID: 45248
Summary: arch/arm/kernel/sleep.S:149:20: error: invalid
reassignment of non-absolute variable 'up_b_offset' in
'.equ' directive
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: MC
Assignee: unassignedb...@nondot.org
Reporter: caij2...@gmail.com
CC: llvm-bugs@lists.llvm.org
Building arch/arm/kernel/sleep.S in linux kernel for ARM with integrated
assembler ended up with the following assertion failure:
arch/arm/kernel/sleep.S:149:20: error: invalid reassignment of non-absolute
variable 'up_b_offset' in '.equ' directive
.equ up_b_offset, 1f - 9998b ; .pushsection ".alt.smp.init", "a" ; .long 9998b
; b . + up_b_offset ; .popsection
I was able to reduce the code to as follows, using X86 assembly,
$ cat repro.s
0:
.equ x, 1f - 0b ;
jmp . + x ;
1:
$ llvm-mc -triple i386 repro.s -filetype=obj -o /dev/null
repro.s:5:9: error: invalid reassignment of non-absolute variable 'x' in '.equ'
directive
.equ x, 0xff ;
$ gcc -c repro.s
$ echo $?
0
--
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