summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorLaurentiu Palcu <laurentiu.palcu@intel.com>2013-01-07 15:07:04 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-01-07 13:41:45 +0000
commit3815030c5f31c11495893c1ae28d56c1aff31d97 (patch)
tree7c12008e5eb1d7a381bb8c9e1c9060b424ddbb64 /scripts
parent0ed77fe790a76a530b173eefaba648b1c22a4a3e (diff)
downloadopenembedded-core-3815030c5f31c11495893c1ae28d56c1aff31d97.tar.gz
openembedded-core-3815030c5f31c11495893c1ae28d56c1aff31d97.tar.bz2
openembedded-core-3815030c5f31c11495893c1ae28d56c1aff31d97.zip
relocate_sdk.py: new interpreter string was not '\0' terminated
The problem: SDK binaries were not properly relocated when the SDK was installed into a path that had a length less than the default one. Apparently, there were two problems here: the padding was done wrong (the size of one program header table entry was used instead of the program section size) and the new padded string was not used at all. [YOCTO #3655] Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/relocate_sdk.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/relocate_sdk.py b/scripts/relocate_sdk.py
index 637ffe9483..74bb7a5fdd 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():