diff options
author | Fabien Mahot <fabien.mahot@external.desouttertools.com> | 2024-02-16 10:36:44 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-02-17 18:19:19 +0000 |
commit | 6088f280dbb77fea05f06deecee0b39d824b63a4 (patch) | |
tree | 78e352d4b6113e3b641f4821818c595f0c4130c5 /scripts/lib/devtool/ide_sdk.py | |
parent | 53dd45d573fd8367fb711c25e2fa8e4cdda8b046 (diff) | |
download | poky-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 'scripts/lib/devtool/ide_sdk.py')
0 files changed, 0 insertions, 0 deletions