> Hey. Can you describe what exactly are you trying to solve?

Sure. Sorry for the delay it was the kids holidays and I wasn't subscribed to the mailing list.

So we are building an OS that uses the seL4 microkernel and follows the multiboot2 specifications. The OS is fairly static and all components (kernel and user-space tasks) must be loaded at fixed physical addresses before starting the kernel. Everything is bundled as a single ELF file with multiple segments that grub used to load at the right location.

There have been changes in the grub ELF loader that make it reject ELF files that don't have any section, which in our case is a regression. Our ELF file does not have any section and does not include a section header table. This is perfectly legal as per elf(5) and is correctly parsed by readelf and objdump.

This simple patch makes grub accept ELF files without section header and in this case just returns 0 sections found.

Cheers,

--
Mathieu
Mirmont <mat+g...@neutrality.ch>

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to