]> code.ossystems Code Review - openembedded-core.git/commit
relocate_sdk: additional error checks
authorJuro Bystricky <juro.bystricky@intel.com>
Thu, 31 Mar 2016 00:13:54 +0000 (17:13 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 31 Mar 2016 12:18:20 +0000 (13:18 +0100)
commit4d949da965a99ab33798af49e5584c8bb9f0f626
treeab7e429460eed0f57a6208637548d84bee1074a6
parent5ba3115a699357a5d272836b7edf883753a551d0
relocate_sdk: additional error checks

When installing SDK in a non-default location and the path length
of the SDK install location is longer than the path length of the
default SDK location, relocation of .ldsochache section will overwrite
file location outside of the .ldsocache section size.
In addition, additional checks were added to ensure that any
path in sections .gccrelocprefix and .ldsochache will not exceed
the space allocated for it within the file, which would also result
in file corruption.

[YOCTO #9268]

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/relocate_sdk.py