Bug#1140751: trixie-pu: package grub2/2.12-9+deb13u3

Han Gao <[email protected]> Thu, 30 Jul 2026 00:43:58 +0800
Newsgroups gmane.linux.debian.devel.release
Message-ID <CAAT7Ki9ihPgoCThPXt6JE-ZVxdqp1ZJH4SQCc-acUOZGncttTA__2381.68274970434$1785345110$gmane$org@mail.gmail.com>
On Wed, Jul 15, 2026 at 3:45=E2=80=AFAM 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=3Dlarge` is not used, GRUB2 uses R_RISCV_CALL/R_RISCV_CALL=
_PLT
> > for jumps, which are limited to a =C2=B12 GiB range=EF=BC=8Chowever, th=
is is
> > insufficient for (monolithic)grub.efi.
> > The solution for GRUB is to use `mcmodel=3Dlarge`.
> > On RISC-V, GCC does not allow the simultaneous use of `-fPIE`
> > and `-mcmodel=3Dlarge`, issuing an error indicating that this
> > combination is unimplemented.
> > - cc1: sorry, unimplemented: code model =E2=80=98large=E2=80=99 with =
=E2=80=98-fPIC=E2=80=99
> > This causes `cmodel=3Dlarge` 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 see=
ms
> 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
>