Error in multiboot 2 spec
Posted: Fri Aug 25, 2023 12:25 am
It seems elf-symbols info tag format is incompliant.
Current version of multiboot2 spec: https://www.gnu.org/software/grub/manua ... 02dSymbols
In section 3.6.7, the format of elf-symbols tag is:
In section 4.4.1, content of multiboot2.h:
I also checked grub2 repo, the latter version is correct.
Current version of multiboot2 spec: https://www.gnu.org/software/grub/manua ... 02dSymbols
In section 3.6.7, the format of elf-symbols tag is:
Code: Select all
+-------------------+
u32 | type = 9 |
u32 | size |
u16 | num |
u16 | entsize |
u16 | shndx |
u16 | reserved |
varies | section headers |
+-------------------+
Code: Select all
struct multiboot_tag_elf_sections
{
multiboot_uint32_t type;
multiboot_uint32_t size;
multiboot_uint32_t num;
multiboot_uint32_t entsize;
multiboot_uint32_t shndx;
char sections[0];
};