Re: [PATCH] common-user/host/riscv: use tail pseudoinstruction for calling tail

2025-04-21 Thread Alistair Francis
On Thu, Apr 17, 2025 at 5:24 PM Icenowy Zheng wrote: > > The j pseudoinstruction maps to a JAL instruction, which can only handle > a jump to somewhere with a signed 20-bit destination. In case of static > linking and LTO'ing this easily leads to "relocation truncated to fit" > error. > > Switch t

Re: [PATCH] common-user/host/riscv: use tail pseudoinstruction for calling tail

2025-04-18 Thread Richard Henderson
On 4/17/25 00:22, Icenowy Zheng wrote: The j pseudoinstruction maps to a JAL instruction, which can only handle a jump to somewhere with a signed 20-bit destination. In case of static linking and LTO'ing this easily leads to "relocation truncated to fit" error. Switch to use tail pseudoinstructi

[PATCH] common-user/host/riscv: use tail pseudoinstruction for calling tail

2025-04-17 Thread Icenowy Zheng
The j pseudoinstruction maps to a JAL instruction, which can only handle a jump to somewhere with a signed 20-bit destination. In case of static linking and LTO'ing this easily leads to "relocation truncated to fit" error. Switch to use tail pseudoinstruction, which is the standard way to tail-cal