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

--- Comment #20 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
The master branch has been updated by Alan Modra <amo...@sourceware.org>:

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

commit a8c75b765e57aaebb99d4e32e0f228835cff2737
Author: Alan Modra <amo...@gmail.com>
Date:   Tue Feb 14 10:45:51 2017 +1030

    hppa -z relro again

    I misunderstood the hppa alias problem.  File offsets of segments need
    to be such that no page is mapped twice with different permissions.
    (Which still seems to me like something the kernel could fix, but
    anyhow, this is not so difficult to achieve in ld.)

        PR 21000
    bfd/
        * elf-bfd.h (struct elf_backend_data): Add no_page_alias.
        * elfxx-target.h (elf_backend_no_page_alias): Define.
        (elfNN_bed): Init new field.
        * elf.c (assign_file_positions_for_load_sections): If no_page_alias
        ensure PT_LOAD segment starts on a new page.
        * elf32-hppa.c (elf_backend_no_page_alias): Define.
    ld/
        * testsuite/ld-elf/loadaddr1.d: Adjust for hppa file offsets.
        * testsuite/ld-elf/loadaddr2.d: Likewise.
        * testsuite/ld-elf/loadaddr3a.d: Likewise.
        * testsuite/ld-scripts/rgn-at5.d: Likewise.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to