From: Palmer Dabbelt Date: Thu, 27 Feb 2020 19:16:28 +0000 (-0800) Subject: RISC-V: Stop using LOCAL for the uaccess fixups X-Git-Tag: rel_imx_5.10.35_2.0.0-somdevices.0~2422^2~31 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=abc71bf0a70311ab294f97a7f16e8de03718c05a;p=linux.git 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 --- diff --git a/arch/riscv/lib/uaccess.S b/arch/riscv/lib/uaccess.S index f29d2ba2c0a6..fceaeb18cc64 100644 --- a/arch/riscv/lib/uaccess.S +++ b/arch/riscv/lib/uaccess.S @@ -3,14 +3,12 @@ #include #include - .altmacro .macro fixup op reg addr lbl - LOCAL _epc -_epc: +100: \op \reg, \addr .section __ex_table,"a" .balign RISCV_SZPTR - RISCV_PTR _epc, \lbl + RISCV_PTR 100b, \lbl .previous .endm