summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/glibc/ldconfig-native_2.12.1.bb
diff options
context:
space:
mode:
authorFabien Mahot <fabien.mahot@external.desouttertools.com>2024-02-16 10:36:44 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-02-17 18:19:19 +0000
commit6088f280dbb77fea05f06deecee0b39d824b63a4 (patch)
tree78e352d4b6113e3b641f4821818c595f0c4130c5 /meta/recipes-core/glibc/ldconfig-native_2.12.1.bb
parent53dd45d573fd8367fb711c25e2fa8e4cdda8b046 (diff)
downloadpoky-6088f280dbb77fea05f06deecee0b39d824b63a4.tar.gz
ldconfig-native: Fix to point correctly on the DT_NEEDED entries in an ELF file
When ldconfig-native reads an ELF file, it computes an offset from a LOAD segment, to point on DT NEEDED entries of dynstr section. Without this patch, ldconfig-native uses only the first LOAD segment, even if the offset is incorrect. This patch adds conditions to compute the offset by parsing all LOAD segments, one by one. This is a backport from [0], ported to support endianness and 32/64 bits. [0]: https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=58e8f5fd2ba47b6dc47fd4d0a35e4175c7c87aaa (From OE-Core rev: 22e35ccf3731164722e3cda9de1802d7326cb507) Signed-off-by: Fabien Mahot <fabien.mahot@external.desouttertools.com> Reviewed-by: Yoann Congal <yoann.congal@smile.fr> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/glibc/ldconfig-native_2.12.1.bb')
-rw-r--r--meta/recipes-core/glibc/ldconfig-native_2.12.1.bb1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-core/glibc/ldconfig-native_2.12.1.bb b/meta/recipes-core/glibc/ldconfig-native_2.12.1.bb
index 4db67c3ad4..9ca95d1e52 100644
--- a/meta/recipes-core/glibc/ldconfig-native_2.12.1.bb
+++ b/meta/recipes-core/glibc/ldconfig-native_2.12.1.bb
@@ -16,6 +16,7 @@ SRC_URI = "file://ldconfig-native-2.12.1.tar.bz2 \
16 file://add-64-bit-flag-for-ELF64-entries.patch \ 16 file://add-64-bit-flag-for-ELF64-entries.patch \
17 file://no-aux-cache.patch \ 17 file://no-aux-cache.patch \
18 file://add-riscv-support.patch \ 18 file://add-riscv-support.patch \
19 file://ldconfig-handle-.dynstr-located-in-separate-segment.patch \
19" 20"
20 21
21 22