This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: RFC: Add --enable-static-pie to build static executables as PIE
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Florian Weimer <fw at deneb dot enyo dot de>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Tue, 18 Jul 2017 06:08:27 -0700
- Subject: Re: RFC: Add --enable-static-pie to build static executables as PIE
- Authentication-results: sourceware.org; auth=none
- References: <CAMe9rOpAVyDYwe5o3S+0T96Ryeug=qHwgbQguGL4kaqJOrKViw@mail.gmail.com> <87mv822sjs.fsf@mid.deneb.enyo.de>
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.