On Wed, Jul 15, 2026 at 3:45 AM Jonathan Wiltshire <[email protected]> wrote:
>
> Control: tag -1 moreinfo d-i
>
> On Fri, Jun 26, 2026 at 01:42:11AM +0800, Han Gao wrote:
> > [ Reason ]
> > When `cmodel=large` is not used, GRUB2 uses R_RISCV_CALL/R_RISCV_CALL_PLT
> > for jumps, which are limited to a ±2 GiB range,however, this is
> > insufficient for (monolithic)grub.efi.
> > The solution for GRUB is to use `mcmodel=large`.
> > On RISC-V, GCC does not allow the simultaneous use of `-fPIE`
> > and `-mcmodel=large`, issuing an error indicating that this
> > combination is unimplemented.
> > - cc1: sorry, unimplemented: code model ‘large’ with ‘-fPIC’
> > This causes `cmodel=large` to stop working if PIE is detected first.
> > In addition to the bug described in 1140542,
> > GRUB must also be prevented from generating `R_RISCV_ALIGN` relocations,
> > as GRUB cannot ignore them.
>
> Do the grub2 maintainers know about and approve of this update? There seems
> to be no response to Aurelien's question on #1140542.

I have tested both Forky and Trixie. Forky can boot, and Trixie can
also boot using Forky's GRUB.

>
> Thanks,
>
> --
> Jonathan Wiltshire                                      [email protected]
> Debian Developer                         http://people.debian.org/~jmw
>
> 4096R: 0xD3524C51 / 0A55 B7C5 1223 3942 86EC  74C3 5394 479D D352 4C51
> ed25519/0x196418AAEB74C8A1: CA619D65A72A7BADFC96D280196418AAEB74C8A1
>

Reply via email to