]> code.ossystems Code Review - openembedded-core.git/commit
gcc-9.2: Update the relocation patch to add PREFIX/EXEC_PREFIX
authorMark Hatle <mark.hatle@kernel.crashing.org>
Mon, 18 Nov 2019 17:17:30 +0000 (11:17 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 29 Nov 2019 17:37:16 +0000 (17:37 +0000)
commitb879fe730bc2cbce99704705cb53fa9ee958b311
tree52f8f179741e7e1daa537994d147a31c107aa925
parent5e4504026c6358c7d5649843dc354247f5972558
gcc-9.2: Update the relocation patch to add PREFIX/EXEC_PREFIX

Without relocating PREFIX/EXEC_PREFIX the system can not do runtime
relocation for the path to the usr/lib/gcc directory, and other components.

While this is not a normal or supported use-case it does work in the upstream
gcc.  This is difficult to test with the regular OE SDKs, as it requires
running the components with the correct LD_LIBRARY_PATH and ld.so.

Without this update, gcc will typically not be able to find the gcc
provided include file for stddef.h and similar.  This is due to certain
relocations being based on the PREFIX and/or EXEC_PREFIX locations which
are hardcoded at compilation time.

Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-devtools/gcc/gcc-9.2/0025-handle-sysroot-support-for-nativesdk-gcc.patch