]> code.ossystems Code Review - openembedded-core.git/commit
libcap: fix nativesdk-libcap relocate failure
authorhongxu <hongxu.jia@windriver.com>
Thu, 14 Oct 2021 08:47:05 +0000 (16:47 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 16 Oct 2021 16:41:05 +0000 (17:41 +0100)
commit99c62d5d134bf69021a348d40b6aa21f4fc5f8a8
treec4e1aee21db40b14b88764a5170451224a286dbc
parent0ea02ca5c1fc4e15f640b1c26c0a5ce34fc08c05
libcap: fix nativesdk-libcap relocate failure

./lat-sdk-poky-intel-x86-64-1.0.sh -y -d sdk-3
...
Setting it up...ERROR: could not relocate
/buildarea/raid5/hjia/community/lat_github_090816/build-3/tmp/deploy/sdk/sdk-3/sysroots/x86_64-pokysdk-linux/usr/lib/libpsx.so.2.54, interp size = 93 and 134 is needed.
...

Since upstream libcap applied commit [ee3b25c Support simply executing
the built shared libraries.][1], it manually append interp section to shared
libraries.

Refer the implement of Yocto glibc[2], allocated a 4096 byte .interp section
for nativesdk

[1] https://git.kernel.org/pub/scm/linux/kernel/git/morgan/libcap.git/commit/?id=ee3b25c0a877fa74d1aec88f325ac45b09963c82
[2] meta/recipes-core/glibc/glibc/0005-nativesdk-glibc-Raise-the-size-of-arrays-containing-.patch

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-support/libcap/files/0001-nativesdk-libcap-Raise-the-size-of-arrays-containing.patch [new file with mode: 0644]
meta/recipes-support/libcap/libcap_2.54.bb