Using (probably not only) lilo fails with memtest86+: Fatal: Kernel /boot/memtest86plus/memtest is too big # readelf -l /boot/memtest86plus/memtest Elf file type is EXEC (Executable file) Entry point 0x100000 There are 2 program headers, starting at offset 52 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align LOAD 0x000000 0x00000000 0x00000000 0x12bfb0 0x12bfb0 RW 0x200000 PAX_FLAGS 0x000000 0x00000000 0x00000000 0x00000 0x00000 0x4 Section to Segment mapping: Segment Sections... 00 .data 01 After applying the fix stated in comment 10 of: https://bugzilla.redhat.com/show_bug.cgi?id=620846 # readelf -l /boot/memtest86plus/memtest Elf file type is EXEC (Executable file) Entry point 0x100000 There are 2 program headers, starting at offset 52 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align LOAD 0x001000 0x00100000 0x00100000 0x2bfb0 0x2bfb0 RW 0x1000 PAX_FLAGS 0x000000 0x00000000 0x00000000 0x00000 0x00000 0x4 Section to Segment mapping: Segment Sections... 00 .data 01
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aee0712e4c0cf7c15440ebfca9eff372ce93d2b1 commit aee0712e4c0cf7c15440ebfca9eff372ce93d2b1 Author: Ben Kohler <bkohler@gentoo.org> AuthorDate: 2021-12-03 16:13:41 +0000 Commit: Ben Kohler <bkohler@gentoo.org> CommitDate: 2021-12-03 16:16:30 +0000 sys-apps/memtest86+: attempt fix for "oversized on x86_64" Fix from https://bugzilla.redhat.com/show_bug.cgi?id=620846#c10 Bug: https://bugs.gentoo.org/613196 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Ben Kohler <bkohler@gentoo.org> sys-apps/memtest86+/memtest86+-5.31b-r2.ebuild | 116 +++++++++++++++++++++++++ 1 file changed, 116 insertions(+)
Can you see if the new -r2 ebuild works better? I've applied that fix from RH