This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: PING: [PATCH] Add --enable-static-pie to build static PIE
- From: Joseph Myers <joseph at codesourcery dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: Szabolcs Nagy <szabolcs dot nagy at arm dot com>, <nd at arm dot com>, GNU C Library <libc-alpha at sourceware dot org>
- Date: Thu, 12 Oct 2017 22:15:55 +0000
- Subject: Re: PING: [PATCH] Add --enable-static-pie to build static PIE
- Authentication-results: sourceware.org; auth=none
- References: <CAMe9rOqdAZkw6rAj16hnbURQVswbOAbseuK+cRfm7yzC6_ktOA@mail.gmail.com> <CAMe9rOp2jnA19-xU0PE=2410yHnyC9Hu_QMkD6wUaYi4rOBVTQ@mail.gmail.com> <alpine.DEB.2.20.1709262304200.29011@digraph.polyomino.org.uk> <CAMe9rOpSHD14xsK51DG7c+UzGptk4LFFCDM2_dbJ7cA1Quyfjg@mail.gmail.com> <alpine.DEB.2.20.1709271236341.19034@digraph.polyomino.org.uk> <CAMe9rOr268hmHGT4Eh1xYL+qeFg419zLbtDUkRbeJqrCkOWzKQ@mail.gmail.com> <alpine.DEB.2.20.1709280044520.32152@digraph.polyomino.org.uk> <CAMe9rOo3vAn-dzSLN_4cmScOT+-hTXaVFgf3LGM5NhJdtFOvMA@mail.gmail.com> <alpine.DEB.2.20.1709281300590.19741@digraph.polyomino.org.uk> <CAMe9rOrnw1-SeyT_FpPhgkHnZqKK_4Gtv-70w2ufbq_Hu9NP9A@mail.gmail.com> <CAMe9rOo3ACm7YKvnpAzX9w+a_scQRirTQ2QZy-BJhL3_p9Mkkw@mail.gmail.com> <59D64E44.6040304@arm.com> <CAMe9rOo3p9eh1tgjNY5DJwHGzGifX3YnsV4aeLXeQKAE=gSGSQ@mail.gmail.com> <CAMe9rOpVguCXiaAOpwLnJN7fyN8vuz_X1HcU7V=a=Nsb3to-fA@mail.gmail.com>
On Thu, 12 Oct 2017, H.J. Lu wrote:
> Here is the updated patch. The main change is that gPcrt1.o is also added
> to create static PIE with -pg.
The attached build-many-glibcs.py patch is definitely inappropriate for
master. If --enable-static-pie is approved, it would be appropriate to
build one or two additional glibc variants in build-many-glibcs.py with
this option. It is *not* appropriate to add it to all builds there,
because of how (as discussed) the option is different from
--enable-profile, changing how the normal static libc is built instead of
adding a new variable.
--
Joseph S. Myers
joseph@codesourcery.com