[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/28639] Linker should ignore input .note.gnu.build-id sections
From: |
cvs-commit at gcc dot gnu.org |
Subject: |
[Bug ld/28639] Linker should ignore input .note.gnu.build-id sections |
Date: |
Thu, 02 Dec 2021 00:42:28 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=28639
--- Comment #3 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot
gnu.org> ---
The master branch has been updated by H.J. Lu <hjl@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=1f1d0f8888a6c944e612b416a2a6e11abcf5199f
commit 1f1d0f8888a6c944e612b416a2a6e11abcf5199f
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue Nov 30 20:40:38 2021 -0800
elf: Discard input .note.gnu.build-id sections
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.
PR ld/28639
* ldelf.c (ldelf_after_open): Discard input .note.gnu.build-id
sections, excluding the first one.
(write_build_id): Clear the build ID field before writing.
(ldelf_setup_build_id): Use bfd_make_section_anyway_with_flags
to create the output .note.gnu.build-id section.
* testsuite/ld-elf/build-id.exp: New file.
* testsuite/ld-elf/pr28639a.rd: Likewise.
* testsuite/ld-elf/pr28639b.rd: Likewise.
* testsuite/ld-elf/pr28639c.rd: Likewise.
* testsuite/ld-elf/pr28639d.rd: Likewise.
--
You are receiving this mail because:
You are on the CC list for the bug.