bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/28819] [2.38 Regression] ld between Jan 06 and Jan 21 builds bin


From: cvs-commit at gcc dot gnu.org
Subject: [Bug ld/28819] [2.38 Regression] ld between Jan 06 and Jan 21 builds binaries without RELRO
Date: Wed, 26 Jan 2022 13:32:29 +0000

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

--- Comment #3 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 <hjl@sourceware.org>:

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

commit c804c6f98d342c3d46f73d7a7ec6229d5ab1c9f3
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Fri Jan 14 13:48:36 2022 -0800

    ld: Rewrite lang_size_relro_segment_1

    1. Compute the desired PT_GNU_RELRO segment base and find the maximum
    section alignment of sections starting from the PT_GNU_RELRO segment.
    2. Find the first preceding load section.
    3. Don't add the 1-page gap between the first preceding load section and
    the relro segment if the maximum page size >= the maximum section
    alignment.  Align the PT_GNU_RELRO segment first.  Subtract the maximum
    page size if therer is still a 1-page gap.

            PR ld/28743
            PR ld/28819
            * ldlang.c (lang_size_relro_segment_1): Rewrite.
            * testsuite/ld-x86-64/pr28743-1.d: New file.
            * testsuite/ld-x86-64/pr28743-1.s: Likewise.
            * testsuite/ld-x86-64/x86-64.exp: Run pr28743-1.

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