[Bug 2103864] Re: grub-efi-riscv64-bin 2.12-5ubuntu9 fails with "relocation overflow"
Mate Kukri
2103864 at bugs.launchpad.net
Sat Mar 22 19:30:40 UTC 2025
It seems like risc-v EFI loads the core high, and restricting dynamic
allocations <=4GB causes modules to be loaded low.
Then the module loader tries to patch up some relocations with the delta
between some symbols in the core and the module, but it fails due to the
large offset.
Modules should be compiled with -mcmodel=large, and this _should
not_happen, but it does.
The root cause is probably somewhere in the GRUB ELF module loader, or
the compiler options used for building modules.
Good news if arm64 works fine, for risc-v we can revert the 4gb limit
today i guess, and investigate the root cause next week.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/2103864
Title:
grub-efi-riscv64-bin 2.12-5ubuntu9 fails with "relocation overflow"
Status in grub2 package in Ubuntu:
In Progress
Bug description:
I have a virtual machine with 48 GiB RAM which booted fine before the
package grub-efi-riscv64 was update to 2.12-5ubuntu9 on 2025-03-21.
Rebooting the machine fails with "relocation overflow"
RISC-V EDK2 firmware version 2024.11-5
Press ESCAPE within 5 seconds for boot options relocation overflow
Aborted. Press any key to exit.
When I change the RAM size to 4 GiB booting works fine.
This bug is release critical for 25.04.
Best regards
Heinrich
---
ProblemType: Bug
ApportVersion: 2.32.0-0ubuntu2
Architecture: riscv64
CasperMD5json:
{
"result": "skip"
}
DistroRelease: Ubuntu 25.04
InstallationDate: Installed on 2025-03-17 (5 days ago)
InstallationMedia: Ubuntu-Server 25.04 "Plucky Puffin" - Daily riscv64 (20250316)
Package: grub2 (not installed)
ProcVersionSignature: Ubuntu 6.14.0-9.9.1-generic 6.14.0-rc6
Tags: plucky
Uname: Linux 6.14.0-9-generic riscv64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: N/A
_MarkForUpload: True
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/2103864/+subscriptions
More information about the foundations-bugs
mailing list