From c2a4e891397c8957abd6b418d53ad8e2440eccc1 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Tue, 21 May 2024 15:37:39 +0000 Subject: [PATCH] linker benchmark: our riscv64 toolchain has lga now. This doesn't make any difference, but it does let us delete an obsolete comment. Change-Id: Ibf81978bb7883e8c6b86c1f6c459ff70bca3f682 --- benchmarks/linker_relocation/include/linker_reloc_bench_asm.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/benchmarks/linker_relocation/include/linker_reloc_bench_asm.h b/benchmarks/linker_relocation/include/linker_reloc_bench_asm.h index 885e47fb4..ea63e36ef 100644 --- a/benchmarks/linker_relocation/include/linker_reloc_bench_asm.h +++ b/benchmarks/linker_relocation/include/linker_reloc_bench_asm.h @@ -44,9 +44,7 @@ #elif defined(__riscv) -// No `lga` in clang unless https://reviews.llvm.org/D107278 lands. -// `la` is equivalent when using PIC (which we do) though. -#define GOT_RELOC(sym) la a0, sym +#define GOT_RELOC(sym) lga a0, sym #define CALL(sym) call sym@plt #define DATA_WORD(val) .quad val #define MAIN .globl main; main: li a0, 0; ret