Fix the compile errors "R_RISCV_JAL out of rang" when the jump range is greater than 1M memory space between vfork and __set_errno_internal
the "tail" command is used here, let the compiler decide which instruction to use. when the call distance is less than 1M, it will be compiled into "jr" command, and when the distance is greater than 1M, it will be compiled into "aupic" and "jr" command. Test: make libc Change-Id: I80d099d25c7cc2439a297d8afc65abeb5a7a360c Signed-off-by: caowencheng <caowencheng@eswincomputing.com>
This commit is contained in:
parent
78f71a53e5
commit
d27c83fbd4
1 changed files with 1 additions and 1 deletions
|
@ -62,5 +62,5 @@ ENTRY(vfork)
|
|||
|
||||
.L_failure:
|
||||
neg a0, a0
|
||||
j __set_errno_internal
|
||||
tail __set_errno_internal
|
||||
END(vfork)
|
||||
|
|
Loading…
Reference in a new issue