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 <h...@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=1f1d0f8888a6c944e612b416a2a6e11abcf5199f

commit 1f1d0f8888a6c944e612b416a2a6e11abcf5199f
Author: H.J. Lu <hjl.to...@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.

Reply via email to