bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/23980] powerpc64 ld segfault when linking libc on FreeBSD


From: cvs-commit at gcc dot gnu.org
Subject: [Bug ld/23980] powerpc64 ld segfault when linking libc on FreeBSD
Date: Tue, 18 Dec 2018 00:30:19 +0000

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

--- Comment #12 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
The master branch has been updated by Alan Modra <address@hidden>:

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

commit 7af5d5c4dda26ac36ee2ff42af8f39a10382cc41
Author: Alan Modra <address@hidden>
Date:   Tue Dec 18 09:20:06 2018 +1030

    PR23980, assertion fail

    All of the backend relocate_section functions that interpret reloc
    numbers assuming the input file is of the expected type (ie. same as
    output or very similar) really ought to be checking input file type.
    Not many do, and those that do currently just assert.  This patch
    replaces the assertion with a more graceful exit.

        PR 23980
        * elf32-i386.c (elf_i386_relocate_section): Exit with wrong format
        error rather than asserting input file is as expected.
        * elf32-s390.c (elf_s390_relocate_section): Likewise.
        * elf32-sh.c (sh_elf_relocate_section): Likewise.
        * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
        * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
        * elf64-s390.c (elf_s390_relocate_section): Likewise.
        * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
        * elf32-ppc.c (ppc_elf_relocate_section): Exit with wrong format
        error if input file is not ppc32 ELF.

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]