Re: Re: [PATCH] elf: accept elf files without section header table

2024-05-15 Thread Mathieu Mirmont
> 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 comp

Re: [PATCH] elf: accept elf files without section header table

2024-05-03 Thread Vladimir 'phcoder' Serbinenko
Hey. Can you describe what exactly are you trying to solve? Le ven. 3 mai 2024, 17:46, Mathieu Mirmont a écrit : > It isn't an error for an elf executable to be lacking a section header > table. In this case we should just be returning shnum = 0. > > According to the elf(5) manual page: > " > e_

[PATCH] elf: accept elf files without section header table

2024-05-03 Thread Mathieu Mirmont
It isn't an error for an elf executable to be lacking a section header table. In this case we should just be returning shnum = 0. According to the elf(5) manual page: " e_shoff This member holds the section header table's file offset in bytes. If the file has no section header table, t