Skip to content

Commit abc71bf

Browse files
RISC-V: Stop using LOCAL for the uaccess fixups
LLVM's integrated assembler doesn't support the LOCAL directive, which we're using when generating our uaccess fixup tables. Luckily the table fragment is small enough that there's only one internal symbol, so using a relative symbol reference doesn't really complicate anything. Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
1 parent fdff991 commit abc71bf

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

arch/riscv/lib/uaccess.S

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@
33
#include <asm/asm.h>
44
#include <asm/csr.h>
55

6-
.altmacro
76
.macro fixup op reg addr lbl
8-
LOCAL _epc
9-
_epc:
7+
100:
108
\op \reg, \addr
119
.section __ex_table,"a"
1210
.balign RISCV_SZPTR
13-
RISCV_PTR _epc, \lbl
11+
RISCV_PTR 100b, \lbl
1412
.previous
1513
.endm
1614

0 commit comments

Comments
 (0)