https://sourceware.org/bugzilla/show_bug.cgi?id=32787

--- Comment #2 from Sourceware Commits <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=d87be451ebbf831d44ac168ca9ea2b79ab5a79b3

commit d87be451ebbf831d44ac168ca9ea2b79ab5a79b3
Author: H.J. Lu <hjl.to...@gmail.com>
Date:   Thu Mar 13 11:52:00 2025 -0700

    elf: Clear the SEC_ALLOC bit for NOLOAD note sections

    When generating an ELF output file, if a note section is marked as
    NOLOAD, clear the SEC_ALLOC bit so that it won't be treated as an
    SHF_ALLOC section, like a .bss style section.

            PR ld/32787
            * ld.texi: Update NOLOAD for ELF output files.
            * ldlang.c (lang_add_section): Clear the SEC_ALLOC bit for NOLOAD
            note sections for ELF output files.
            * testsuite/ld-elf/pr32787.d: New file.
            * testsuite/ld-elf/pr32787.t: Likewise.

    Signed-off-by: H.J. Lu <hjl.to...@gmail.com>

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to