bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/22845] -z separate-code doesn't work right


From: cvs-commit at gcc dot gnu.org
Subject: [Bug ld/22845] -z separate-code doesn't work right
Date: Sat, 17 Feb 2018 13:32:14 +0000

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

--- Comment #6 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=92d9e363b5ab7f96a2c8e6d3ae86cf8cc91dca9d

commit 92d9e363b5ab7f96a2c8e6d3ae86cf8cc91dca9d
Author: H.J. Lu <address@hidden>
Date:   Sat Feb 17 05:30:13 2018 -0800

    ld-elf/eh4: Pass -z max-page-size=0x200000 -z noseparate-code to ld

    -z separate-code creates separate code LOAD segment, aligns it to the
    maximum page size and places .plt section before .text section.  But
    ld-elf/eh4 passes -Ttext 0x400 to linker to place .text section at
    address 0x400, which is impossible for linker to accomplish:

    $ ld -shared -Ttext 0x400 -z separate-code -o x.so eh4.o
    ld: section .eh_frame LMA [0000000000200000,000000000020006b] overlaps
section .plt LMA [0000000000200000,000000000020001f]

    Since ld-elf/eh4 also checks exact addresses, this patch passes
    -z max-page-size=0x200000 -z noseparate-code to ld.

        PR ld/22845
        * ld-elf/eh4.d: Pass -z max-page-size=0x200000 -z noseparate-code
        to ld.

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