]> code.ossystems Code Review - openembedded-core.git/commitdiff
uninative: don't try to relocate static binaries
authorRoss Burton <ross.burton@intel.com>
Thu, 24 Mar 2016 15:43:48 +0000 (15:43 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 25 Mar 2016 10:28:04 +0000 (10:28 +0000)
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>
meta/classes/uninative.bbclass

index b045a2818befd4456944d9d7f25f7367f5d5c86e..07987177143edd7e37b0c51f91a6933b53d60b76 100644 (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",