Files
poky/meta/recipes-devtools
Valerii Chernous e9558a166e elf: Discard input .note.gnu.build-id sections
Originally issue:
building of glibc 2.32 or 2.34 with option "-Wl,--build-id"
produce libc.so.6 with section ".note.gnu.build-id" that have
invalid(double, 0x48) section size. It happens because glibc
use sublibraries for linking libc.so.6
ld produce this sublibraries with build-id section and on last
linking stage loads this sections as input for linking.
ld should create new(valid) ".note.gnu.build-id" into function
ldelf_setup_build_id on last linking stage but it skip creating because
build-id section already exists.
As result libc.so.6 contain ".note.gnu.build-id" with build-ids from
sublibraries and without valid build-id

Howto solved:
1. Discard input .note.gnu.build-id sections.
2. Clear the build ID field before writing.
3. Use bfd_make_section_anyway_with_flags to create the output
   .note.gnu.build-id section.

Upstream-Status: Backport

Reference to upstream patch:
[https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=1f1d0f8888a6c944e612b416a2a6e11abcf5199f]

(From OE-Core rev: 68bbff44a481a036dc7d39e5d5745a01ccffdb95)

Signed-off-by: Valerii Chernous <vchernou@cisco.com>
Signed-off-by: Valery Chernous <valery.chernous@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-12-12 11:27:24 +00:00
..
2021-10-23 17:42:25 +01:00
2021-12-08 20:22:11 +00:00
2021-12-09 10:33:25 +00:00
2021-08-02 15:44:10 +01:00
2021-12-12 11:27:23 +00:00
2021-08-02 15:44:10 +01:00
2021-11-25 21:55:10 +00:00
2021-11-10 19:27:29 +00:00
2021-08-02 15:44:10 +01:00
2021-11-25 21:55:10 +00:00
2021-11-25 21:55:10 +00:00
2021-12-08 20:22:11 +00:00
2021-12-08 20:22:11 +00:00
2021-11-03 10:12:42 +00:00
2021-12-08 20:22:11 +00:00
2021-08-02 15:44:11 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-11-29 23:07:13 +00:00
2021-11-29 23:07:13 +00:00
2021-11-16 22:20:33 +00:00
2021-08-02 15:44:10 +01:00
2020-03-08 08:21:11 +00:00
2021-08-02 15:44:10 +01:00
2021-12-12 11:27:23 +00:00
2021-12-09 10:33:25 +00:00
2021-12-01 16:23:45 +00:00
2021-08-02 15:44:10 +01:00
2021-12-08 20:22:11 +00:00
2021-08-02 15:44:10 +01:00
2021-11-10 19:27:29 +00:00
2021-11-10 19:27:29 +00:00
2021-10-30 22:31:52 +01:00
2021-12-12 11:27:24 +00:00
2021-11-11 22:26:46 +00:00
2021-08-02 15:44:10 +01:00
2021-12-08 20:22:11 +00:00
2021-08-02 15:44:10 +01:00
2021-12-09 10:33:25 +00:00
2021-12-08 20:22:11 +00:00
2021-12-08 20:22:11 +00:00
2021-08-02 15:44:10 +01:00
2021-12-08 20:22:10 +00:00
2021-12-08 20:22:11 +00:00
2021-12-06 11:09:52 +00:00
2021-08-02 15:44:10 +01:00