[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

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_

Re: [PATCH v4] cryptodisk: allow user to retry failed passphrase

2024-05-03 Thread Maximilian Stendler
Hi, I've had the same issue but build a different solution via scripting[0]: The cryptomount and retries are implemented in a grub.cfg template. With some shell-scripts the actual grub.cfg can be generated and put into a tar used as a memdisk, additionally containing all necessary modules and comp