fixed compiler relocation issue with R_RISCV_GOT_HI20

This commit is contained in:
Blaise Tine 2024-04-11 15:35:51 -07:00
parent 9feb46387e
commit b32ea5b750

View file

@ -109,7 +109,8 @@ init_regs:
# ensure cache line alignment
la t1, __tcb_aligned_size
mul t0, t0, t1
la tp, _end + 63
la tp, _end
addi tp, tp, 63
add tp, tp, t0
and tp, tp, -64
ret