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: Szabolcs Nagy <szabolcs dot nagy at arm dot com>
- To: Alan Modra <amodra at gmail dot com>, "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: nd at arm dot com, Rich Felker <dalias at libc dot org>, GNU C Library <libc-alpha at sourceware dot org>
- Date: Tue, 18 Jul 2017 16:21:29 +0100
- Subject: Re: RFC: Add --enable-static-pie to build static executables as PIE
- Authentication-results: sourceware.org; auth=none
- Authentication-results: sourceware.org; dkim=none (message not signed) header.d=none;sourceware.org; dmarc=none action=none header.from=arm.com;
- Nodisclaimer: True
- References: <CAMe9rOpAVyDYwe5o3S+0T96Ryeug=qHwgbQguGL4kaqJOrKViw@mail.gmail.com> <20170717222937.GQ1627@brightrain.aerifal.cx> <CAMe9rOozp6T25FzpP41S+PaWmANa955=K8hZcFagmFfoaQKgSA@mail.gmail.com> <20170718042500.GI14520@bubble.grove.modra.org> <CAMe9rOq3h1mvrLUn7CQ9vJ=NmERhr=Hb1KHu7-zkA6aKKT7WHA@mail.gmail.com> <20170718134800.GK14520@bubble.grove.modra.org>
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
On 18/07/17 14:48, Alan Modra wrote:
> On Tue, Jul 18, 2017 at 05:30:48AM -0700, H.J. Lu wrote:
>> On Mon, Jul 17, 2017 at 9:25 PM, Alan Modra <amodra@gmail.com> wrote:
>> Linker needs to support --no-dynamic-linker.
>
> Is there really much to be gained from PIEs that don't use ld.so
> versus those that do?
>
in glibc ld.so in principle only works with one particular
version of glibc, you cannot move a static linked pie binary
to another system if it has ld.so dependency.