uninative: don't try to relocate static binaries

patchelf will understandably error out if there isn't a .interp section to
relocate, so don't try to relocate static binaries.

(From OE-Core rev: 2a1803e64174825d9392094ae6e680a1ac96eb4a)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ross Burton 2016-03-24 15:43:48 +00:00 committed by Richard Purdie
parent c3c0d0ac55
commit 07f0af3d33
1 changed files with 2 additions and 0 deletions

View File

@ -127,6 +127,8 @@ python uninative_changeinterp () {
elf.open()
except oe.qa.NotELFFileError:
continue
if not elf.isDynamic():
continue
try:
subprocess.check_output(("patchelf-uninative", "--set-interpreter",