[llvm-bugs] [Bug 45248] New: arch/arm/kernel/sleep.S:149:20: error: invalid reassignment of non-absolute variable 'up_b_offset' in '.equ' directive
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Mar 18 20:30:06 PDT 2020
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: unassignedbugs at nondot.org
Reporter: caij2003 at gmail.com
CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200319/02405bf9/attachment.html>
More information about the llvm-bugs
mailing list