diff options
author | Laurentiu Palcu <laurentiu.palcu@intel.com> | 2013-01-07 15:07:04 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-01-07 13:50:40 +0000 |
commit | d036724c0d096a25da16bca6370afe100a549367 (patch) | |
tree | 888ebf0fef244329115afb832a671c22fa1cbccc | |
parent | 1cecbacdbef77a94f701abadba7527a53b775acb (diff) | |
download | poky-d036724c0d096a25da16bca6370afe100a549367.tar.gz |
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]
(From OE-Core rev: 3815030c5f31c11495893c1ae28d56c1aff31d97)
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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 637ffe9483..74bb7a5fdd 100755 --- a/scripts/relocate_sdk.py +++ b/scripts/relocate_sdk.py | |||
@@ -89,8 +89,8 @@ def change_interpreter(): | |||
89 | if p_type == 3: | 89 | if p_type == 3: |
90 | # PT_INTERP section | 90 | # PT_INTERP section |
91 | f.seek(p_offset) | 91 | f.seek(p_offset) |
92 | dl_path = new_dl_path + "\0" * (e_phentsize - len(new_dl_path)) | 92 | dl_path = new_dl_path + "\0" * (p_filesz - len(new_dl_path)) |
93 | f.write(new_dl_path) | 93 | f.write(dl_path) |
94 | break | 94 | break |
95 | 95 | ||
96 | def change_dl_sysdirs(): | 96 | def change_dl_sysdirs(): |