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:
parent
d9fa32e99f
commit
1bfe534274
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ ENTRY(_start)
|
||||||
.cfi_undefined ra
|
.cfi_undefined ra
|
||||||
|
|
||||||
mv a0, sp
|
mv a0, sp
|
||||||
jal __linker_init
|
call __linker_init
|
||||||
|
|
||||||
// __linker_init returns the address of the entry point in the main image.
|
// __linker_init returns the address of the entry point in the main image.
|
||||||
jr a0
|
jr a0
|
||||||
|
|
Loading…
Reference in a new issue