bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/19013] Section corrupted with elf64-x86-64 input -> elf32-i386 o


From: cvs-commit at gcc dot gnu.org
Subject: [Bug ld/19013] Section corrupted with elf64-x86-64 input -> elf32-i386 output
Date: Wed, 30 Sep 2015 12:39:44 +0000

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

--- Comment #6 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 <address@hidden>:

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

commit 9865bd0da6e59c3a1c55605b5a6a9283ed4d542c
Author: H.J. Lu <address@hidden>
Date:   Wed Sep 30 05:32:12 2015 -0700

    Also check e_machine when merging sections

    When we check consistency for merge ELF sections, we should not only
    check EI_CLASS, but also compatible e_machine.

    bfd/

        PR ld/19013
        * elflink.c (_bfd_elf_merge_sections): Only merge input bfds
        that have the compatible ELF machine code with the output bfd.

    ld/testsuite/

        PR ld/19013
        * ld-x86-64/pr19013-nacl.d: New file.
        * ld-x86-64/pr19013-x32.d: Likewise.
        * ld-x86-64/pr19013.d: Likewise.
        * ld-x86-64/pr19013.s: Likewise.
        * ld-x86-64/x86-64.exp: Run PR ld/19013 tests.

-- 
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]