diff options
-rwxr-xr-x | scripts/relocate_sdk.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/relocate_sdk.py b/scripts/relocate_sdk.py index 637ffe9483e..74bb7a5fddb 100755 --- a/scripts/relocate_sdk.py +++ b/scripts/relocate_sdk.py @@ -89,8 +89,8 @@ def change_interpreter(): if p_type == 3: # PT_INTERP section f.seek(p_offset) - dl_path = new_dl_path + "\0" * (e_phentsize - len(new_dl_path)) - f.write(new_dl_path) + dl_path = new_dl_path + "\0" * (p_filesz - len(new_dl_path)) + f.write(dl_path) break def change_dl_sysdirs(): |