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

--- Comment #16 from Sourceware Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Kito Cheng <[email protected]>:

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

commit 97e4144904779d0c986670ed977d7c3fa61806b2
Author: Sungjoon Moon <[email protected]>
Date:   Fri Dec 26 00:06:00 2025 +0900

    RISC-V: PR30237, don't add PT_RISCV_ATTRIBUTES in objcopy/strip

    LLD < 17 doesn't create PT_RISCV_ATTRIBUTES.  Adding a program header
    to an existing binary breaks layout when space wasn't reserved,
    failing with "not enough room for program headers".

    Skip when info == NULL, like SPU, S390, and HPPA.

    bfd/
            PR 30237
            elfnn-riscv.c (riscv_elf_additional_program_headers): Return 0
            hen info == NULL.
            (riscv_elf_modify_segment_map): Likewise, return true.

    Signed-off-by: Sungjoon Moon <[email protected]>

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

Reply via email to