bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/22829] objcopy/strip: PT_GNU_RELRO is removed when it's no


From: cvs-commit at gcc dot gnu.org
Subject: [Bug binutils/22829] objcopy/strip: PT_GNU_RELRO is removed when it's not placed before read-only section
Date: Tue, 13 Feb 2018 09:09:03 +0000

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

--- Comment #10 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=f2731e0c374e5323ce4cdae2bcc7b7fe22da1a6f

commit f2731e0c374e5323ce4cdae2bcc7b7fe22da1a6f
Author: Alan Modra <address@hidden>
Date:   Mon Feb 12 13:06:07 2018 +1030

    PR22829, objcopy/strip removes PT_GNU_RELRO from lld binaries

    lld lays out the relro segment differently to GNU ld, not bothering to
    include the first few bytes of .got.plt and padding out to a page at
    the end of the segment.  This patch teaches binutils to recognize the
    different (and somewhat inferior) layout as valid.

    bfd/
        PR 22829
        * elf.c (assign_file_positions_for_non_load_sections): Rewrite
        PT_GNU_RELRO setup.
    ld/
        * testsuite/ld-x86-64/pr14207.d: Adjust relro p_filesz.

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