summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorNikunj Kela <nkela@cisco.com>2017-02-14 18:15:28 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-08 11:52:57 +0000
commitd49dba9a6a785dbe1db488cbf9167c2994dad735 (patch)
treed5d82189218da374ff97de01b22651533d1f0597 /scripts
parent0884c80070bf163f02d962335564a835deb6d90d (diff)
downloadpoky-d49dba9a6a785dbe1db488cbf9167c2994dad735.tar.gz
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) (From OE-Core rev: 93b73b2495f9cb18741837c5437de629adfd3780) Signed-off-by: Nikunj Kela <nkela@cisco.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/relocate_sdk.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/relocate_sdk.py b/scripts/relocate_sdk.py
index e47b4d916e..c752fa2c61 100755
--- a/scripts/relocate_sdk.py
+++ b/scripts/relocate_sdk.py
@@ -103,6 +103,8 @@ def change_interpreter(elf_file_name):
103 fname.startswith(b("/lib32/")) or fname.startswith(b("/usr/lib32/")) or \ 103 fname.startswith(b("/lib32/")) or fname.startswith(b("/usr/lib32/")) or \
104 fname.startswith(b("/usr/lib32/")) or fname.startswith(b("/usr/lib64/")): 104 fname.startswith(b("/usr/lib32/")) or fname.startswith(b("/usr/lib64/")):
105 break 105 break
106 if p_filesz == 0:
107 break
106 if (len(new_dl_path) >= p_filesz): 108 if (len(new_dl_path) >= p_filesz):
107 print("ERROR: could not relocate %s, interp size = %i and %i is needed." \ 109 print("ERROR: could not relocate %s, interp size = %i and %i is needed." \
108 % (elf_file_name, p_memsz, len(new_dl_path) + 1)) 110 % (elf_file_name, p_memsz, len(new_dl_path) + 1))