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

--- Comment #3 from Sourceware Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Alan Modra <amo...@sourceware.org>:

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

commit 8fd6a9c70b4b67541dbafba64d0e215eada05ff1
Author: Alan Modra <amo...@gmail.com>
Date:   Tue Jul 29 10:39:51 2025 +0930

    PR 33223 ppc64: segfault on unknown relocation

    Bounds check accesses to ppc64_elf_howto_table and don't dereference a
    NULL howto.  I think this catches all cases where that might happen.

            PR 33223
    bfd/
            * elf64-ppc.c (ppc64_elf_info_to_howto): Consolidate error
handling.
            (ppc64_elf_check_relocs): Tidy error messages.
            (ppc64_elf_relocate_section): Don't segfault when attempting to
            report an unsupported relocation.  Don't pass a NULL howto to
            _bfd_clear_contents.
    ld/
            * testsuite/ld-powerpc/elfv2-2so.d: Adjust to suit error message
            change.

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

Reply via email to