Wind River Support Network

HomeDefectsLIN8-2255
Fixed

LIN8-2255 : relocate_sdk.py: Incorrect handling of .gccrelocprefix

Created: Dec 17, 2015    Updated: Dec 3, 2018
Resolved Date: Mar 24, 2016
Found In Version: 8.0
Fix Version: 8.0.0.4
Severity: Standard
Applicable for: Wind River Linux 8
Component/s: Build & Config

Description

When installing an SDK that was previously generated from a WR Linux 8 build, the relocate_sdk.py script is run on various binaries to fix paths in the .gccrelocprefix section. 

In case the new SDK path is longer than the build path (the path you will replace in the .gccrelocprefix section is longer than the path already present in this section), the relocate_sdk.py script may not correctly update all the entries in .gccrelocprefix section. The issue is that when updating one entry in the section, we may corrupt the next entry because we will write too many bytes (more than 4096). Note that this problem does not seem to appear on local file systems because of the way file system caching but it is visible when installing the SDK on a NFS mounted file system.

I have attached a patch for Yocto that fixes the problem.

Other Downloads


Live chat
Online