Re: [PATCH v4 3/6] linux/arm: account for COFF headers appearing at unexpected offsets

2022-10-14 Thread Daniel Kiper
On Thu, Sep 08, 2022 at 03:30:14PM +0200, Ard Biesheuvel wrote: > The way we load the Linux and PE/COFF image headers depends on a fixed > placement of the COFF header at offset 0x40 into the file. This is a > reasonable default, given that this is where Linux emits it today. > However, in order to

[PATCH v4 3/6] linux/arm: account for COFF headers appearing at unexpected offsets

2022-09-08 Thread Ard Biesheuvel
The way we load the Linux and PE/COFF image headers depends on a fixed placement of the COFF header at offset 0x40 into the file. This is a reasonable default, given that this is where Linux emits it today. However, in order to comply with the PE/COFF spec, which allows this header to appear anywhe