bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/18785] strip is broken


From: cvs-commit at gcc dot gnu.org
Subject: [Bug binutils/18785] strip is broken
Date: Fri, 07 Aug 2015 17:37:43 +0000

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

--- Comment #2 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=d4ac1f878ecef58f1e4b4ff0cbfb4b475656eaf4

commit d4ac1f878ecef58f1e4b4ff0cbfb4b475656eaf4
Author: H.J. Lu <address@hidden>
Date:   Fri Aug 7 10:28:42 2015 -0700

    Check sh_type/sh_flags/sh_addralign/sh_entsize when copying sh_link/sh_info

    When copying the sh_link and sh_info fields in stripped section headers,
    we also check if the sh_type, sh_flags, /sh_addralign and sh_entsize
    fields of the output section match the output.  Since --only-keep-debug
    turns all non-debug sections into SHT_NOBITS sections, the output
    SHT_NOBITS type matches any input type.

    bfd/

        PR binutils/18785
        * elf.c (_bfd_elf_copy_private_bfd_data): When copying the
        sh_link and sh_info fields in stripped section headers, we also
        check if the sh_type, sh_flags, /sh_addralign and sh_entsize
        fields of the output section match the output.  Since
        --only-keep-debug turns all non-debug sections into SHT_NOBITS
        sections, the output SHT_NOBITS type matches any input type.

    binutils/testsuite/

        PR binutils/18785
        * binutils-all/objcopy.exp: Run strip-12.
        * binutils-all/strip-12.d: New file.
        * binutils-all/strip-12.s: Likewise.

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