Open
Description
Bugzilla Link | 45051 |
Version | unspecified |
OS | Linux |
Blocks | #4440 |
CC | @jcai19,@echristo,@MaskRay,@isanbard,@zygoloid,@lenary,@stephenhines |
Extended Description
Buiding the RISC-V Linux kernel w/ Clang, we hit this error, ex:
.altmacro
.macro foo
LOCAL bar
bar:
jmp bar
.endm
foo
:1:1: error: invalid instruction mnemonic 'local'
We can work around this via local labels, ie:
.macro foo
1:
jmp 1b
.endm
foo
https://sourceware.org/binutils/docs/as/Macro.html#Macro documents LOCAL
:
Warning: LOCAL is only available if you select “alternate macro syntax” with ‘--alternate’ or .altmacro. See .altmacro.
https://sourceware.org/binutils/docs/as/Altmacro.html#Altmacro