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 <[email protected]>
---
 meta/classes/uninative.bbclass | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/classes/uninative.bbclass b/meta/classes/uninative.bbclass
index b045a28..0798717 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",
-- 
2.7.0

-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to