summaryrefslogtreecommitdiff
path: root/meta/classes/uninative.bbclass
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2016-03-24 15:43:48 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-03-25 10:28:04 +0000
commit2a1803e64174825d9392094ae6e680a1ac96eb4a (patch)
treeeb1f2e9a434cf9391ea505a8e6970e7783f9583b /meta/classes/uninative.bbclass
parent96813445e6618fd8442600d81e53c448310b6e8b (diff)
downloadopenembedded-core-2a1803e64174825d9392094ae6e680a1ac96eb4a.tar.gz
openembedded-core-2a1803e64174825d9392094ae6e680a1ac96eb4a.tar.bz2
openembedded-core-2a1803e64174825d9392094ae6e680a1ac96eb4a.zip
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. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/uninative.bbclass')
-rw-r--r--meta/classes/uninative.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/uninative.bbclass b/meta/classes/uninative.bbclass
index b045a2818b..0798717714 100644
--- a/meta/classes/uninative.bbclass
+++ b/meta/classes/uninative.bbclass
@@ -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",