[oe-commits] [openembedded-core] 20/24: relocate_sdk.py: skip debug files from relocation

git at git.openembedded.org git at git.openembedded.org
Wed Mar 8 11:28:02 UTC 2017


This is an automated email from the git hooks/post-receive script.

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

commit 93b73b2495f9cb18741837c5437de629adfd3780
Author: Nikunj Kela <nkela at cisco.com>
AuthorDate: Tue Feb 14 18:15:28 2017 +0000

    relocate_sdk.py: skip debug files from relocation
    
    Debug files only have debug symbols hence don't need
    to be relocated. Relocation script throws errors when
    run on the debug files. This change skips these files
    that have zero size.
    
    (From OE-Core rev: 132e8bfd499c713eb63075fd6380317b60f0bd27)
    
    Signed-off-by: Nikunj Kela <nkela at cisco.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 scripts/relocate_sdk.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/scripts/relocate_sdk.py b/scripts/relocate_sdk.py
index e47b4d9..c752fa2 100755
--- a/scripts/relocate_sdk.py
+++ b/scripts/relocate_sdk.py
@@ -103,6 +103,8 @@ def change_interpreter(elf_file_name):
                fname.startswith(b("/lib32/")) or fname.startswith(b("/usr/lib32/")) or \
                fname.startswith(b("/usr/lib32/")) or fname.startswith(b("/usr/lib64/")):
                 break
+            if p_filesz == 0:
+                break
             if (len(new_dl_path) >= p_filesz):
                 print("ERROR: could not relocate %s, interp size = %i and %i is needed." \
                     % (elf_file_name, p_memsz, len(new_dl_path) + 1))

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


More information about the Openembedded-commits mailing list