riscv64: don't use jalr when we can just say call.

We don't actually care about the length of this jump, and lld will relax
it to a jal when possible anyway. Better to have people copy & paste
call and tail than jal and j.

Test: treehugger
Change-Id: I889044b95fbb5567189a0d6ef31f81df0e0383cd
This commit is contained in:
Elliott Hughes 2023-05-12 12:56:54 -07:00
parent d9fa32e99f
commit 1bfe534274

View file

@ -33,7 +33,7 @@ ENTRY(_start)
.cfi_undefined ra
mv a0, sp
jal __linker_init
call __linker_init
// __linker_init returns the address of the entry point in the main image.
jr a0