Re: [PATCH for-4.20 2/3] RISCV/asm: Use CALL rather than JAL

2025-02-10 Thread Oleksii Kurochko
On 2/7/25 11:01 PM, Andrew Cooper wrote: JAL has a maximium displacement of 2M. To branch further, it needs pairing with an AUIPC instruction. CALL is a pseudo-op which allows the linker to pick the appropriate sequence while processing relaxations. This avoids a build failure of the form:

[PATCH for-4.20 2/3] RISCV/asm: Use CALL rather than JAL

2025-02-07 Thread Andrew Cooper
JAL has a maximium displacement of 2M. To branch further, it needs pairing with an AUIPC instruction. CALL is a pseudo-op which allows the linker to pick the appropriate sequence while processing relaxations. This avoids a build failure of the form: prelink.o: in function `start': xen/xen/a