RFC: Add --enable-static-pie to build static executables as PIE
H.J. Lu
hjl.tools@gmail.com
Tue Jul 18 13:08:00 GMT 2017
On Mon, Jul 17, 2017 at 11:00 PM, Florian Weimer <fw@deneb.enyo.de> wrote:
> * H. J. Lu:
>
>> Are there any interests for --enable-static-pie, which builds static
>> executables as PIE?
>
> I would welcome it, unless it's very invasive.
Please take a look at hl/pie/static branch:
https://sourceware.org/git/?p=glibc.git;a=shortlog;h=refs/heads/hl/pie/static
I only tested it on x86-64. You need binutils 2.29 branch or master branch
for
https://sourceware.org/bugzilla/show_bug.cgi?id=21782
I got these regressions:
FAIL: nptl/tst-cancel21-static
FAIL: nptl/tst-cancel24-static
FAIL: nptl/tst-cond8-static
FAIL: nptl/tst-mutex8-static
FAIL: nptl/tst-mutexpi8-static
FAIL: nptl/tst-sem11-static
FAIL: nptl/tst-sem12-static
I am looking into them.
--
H.J.
More information about the Libc-alpha
mailing list