Re: [OE-core] [PATCH][morty] lib/oe/qa: handle binaries with segments outside the first 4kb

2016-11-26 Thread akuster808
On 11/25/2016 09:35 AM, Ross Burton wrote: > The ELF parser was assuming that the segment tables are in the first 4kb of > the > binary. Whilst this generally appears to be the case, there have been > instances > where the segment table is elsewhere (offset 2MB, in this sample I have). > Sol

[OE-core] [PATCH][morty] lib/oe/qa: handle binaries with segments outside the first 4kb

2016-11-25 Thread Ross Burton
The ELF parser was assuming that the segment tables are in the first 4kb of the binary. Whilst this generally appears to be the case, there have been instances where the segment table is elsewhere (offset 2MB, in this sample I have). Solve this problem by mmap()ing the file instead. Also clean u