Merge "linker benchmark: our riscv64 toolchain has lga now." into main am: 021cd6d2ca am: 7663edbd84

Original change: https://android-review.googlesource.com/c/platform/bionic/+/3092846

Change-Id: I61c0bcebd2acd27824a54c3b6613d2b5fe0d4197
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Elliott Hughes 2024-05-21 18:31:17 +00:00 committed by Automerger Merge Worker
commit 5bd167737f

View file

@ -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