bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/22393] Add read-only segment


From: cvs-commit at gcc dot gnu.org
Subject: [Bug ld/22393] Add read-only segment
Date: Fri, 12 Jan 2018 03:04:57 +0000

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

--- Comment #1 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=47acac12c83f173481debc64618626b50ecf7498

commit 47acac12c83f173481debc64618626b50ecf7498
Author: H.J. Lu <address@hidden>
Date:   Thu Jan 11 19:01:39 2018 -0800

    ld: Add "-z separate-code" option to ELF linker

    The new "-z separate-code" option will generate separate code LOAD
    segment which must be in wholly disjoint pages from any other data.

    include/

        PR ld/22393
        * bfdlink.h (bfd_link_info): Add separate_code.

    ld/

        PR ld/22393
        * NEWS: Mention "-z separate-code".
        * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Get
        builtin linker scripts and return linker scripts from disk for
        "-z separate-code".
        (gld${EMULATION_NAME}_handle_option): Handle "-z separate-code"
        and "-z noseparate-code".
        * genscripts.sh: Generate linker scripts for "-z separate-code".
        (LD_FLAG): Set to *textonly for "-z separate-code".
        * ld.texinfo: Document "-z separate-code".
        * lexsup.c (elf_shlib_list_options): Add linker help messsages
        for "-z separate-code" and "-z noseparate-code".
        * scripttempl/elf.sc (SEPARATE_TEXT): New
        (TEXT_SEGMENT_ALIGN): Likewise.
        Use ${TEXT_SEGMENT_ALIGN} to align and pad text segment to
        ${MAXPAGESIZE}.

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