RISC-V: Allow long jumps to __syscall_error
commit22c96052acf78c5f4644117bece38715fc7210cf
authorŁukasz Stelmach <l.stelmach@samsung.com>
Fri, 16 Sep 2022 19:31:27 +0000 (16 21:31 +0200)
committerDJ Delorie <dj@redhat.com>
Sat, 17 Sep 2022 03:25:45 +0000 (16 23:25 -0400)
tree578c52f2c9d03da45664759520d63df607acfc58
parent5652e12cce80825297c3e0666991deb10310343c
RISC-V: Allow long jumps to __syscall_error

__syscall_error may end up farther than 1MiB away from a caller,
especially when linking statically large binaries. tail allows for
4GiB jumps and is reduced to j when a linked symbol is within range.

Fixes: 36960f0c76 ("RISC-V: Linux Syscall Interface")
Fixes: 7f33b09c65 ("RISC-V: Linux ABI")
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
sysdeps/unix/sysv/linux/riscv/clone.S
sysdeps/unix/sysv/linux/riscv/getcontext.S
sysdeps/unix/sysv/linux/riscv/setcontext.S
sysdeps/unix/sysv/linux/riscv/swapcontext.S
sysdeps/unix/sysv/linux/riscv/sysdep.h
sysdeps/unix/sysv/linux/riscv/vfork.S