diff options
Diffstat (limited to 'import-layers/yocto-poky/scripts/relocate_sdk.py')
-rwxr-xr-x | import-layers/yocto-poky/scripts/relocate_sdk.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/import-layers/yocto-poky/scripts/relocate_sdk.py b/import-layers/yocto-poky/scripts/relocate_sdk.py index e47b4d916..c752fa2c6 100755 --- a/import-layers/yocto-poky/scripts/relocate_sdk.py +++ b/import-layers/yocto-poky/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)) |