[oe-commits] [openembedded-core] 04/05: uninative: don't try to relocate static binaries

git at git.openembedded.org git at git.openembedded.org
Thu Mar 24 16:21:42 UTC 2016


rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit ad51bc875c6dca4426726e25b876ffc837d42188
Author: Ross Burton <ross.burton at intel.com>
AuthorDate: Thu Mar 24 15:43:48 2016 +0000

    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 at intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 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",

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list