diff options
author | Ross Burton <ross.burton@intel.com> | 2016-11-25 17:35:03 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-01-11 11:46:37 +0000 |
commit | b88c6bd61e7c3388b3902de1adb5e48a88f2e235 (patch) | |
tree | 4b7b83d0105f02a065ca3dc2a1ce894f51ba9f86 /meta/recipes-support/liburcu | |
parent | eec53627ac5c3aa811a0bd97f06a4827ef0189d3 (diff) | |
download | openembedded-core-b88c6bd61e7c3388b3902de1adb5e48a88f2e235.tar.gz openembedded-core-b88c6bd61e7c3388b3902de1adb5e48a88f2e235.tar.bz2 openembedded-core-b88c6bd61e7c3388b3902de1adb5e48a88f2e235.zip |
lib/oe/qa: handle binaries with segments outside the first 4kb
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 up the code a little whilst chasing the problem.
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta/recipes-support/liburcu')
0 files changed, 0 insertions, 0 deletions