This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Can the GCC toolchain be built AS a PIE?
- From: Cyd Haselton <chaselton at gmail dot com>
- To: "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Mon, 15 Jun 2015 11:07:41 -0500
- Subject: Re: Can the GCC toolchain be built AS a PIE?
- Authentication-results: sourceware.org; auth=none
- References: <84894021-E95E-42A8-BFDB-4F004AEC470A at gmail dot com> <FA1018B6-9FEF-4F5D-B91F-F3D1700124CD at gmail dot com>
One more polite bump for the Monday crowd, before I try it out
On June 13, 2015 10:56:42 AM CDT, Cyd Haselton <chaselton@gmail.com> wrote:
>Is this a FAQ? Or is the answer obvious?
>
>On June 11, 2015 7:17:11 AM CDT, Cyd Haselton <chaselton@gmail.com>
>wrote:
>>Advance apologies if this question has been asked previously, Google
>>searches only turned up results for using -fPIE/-fPIC.
>>
>>Is it possible to build GCC as a PIE? If so, would it be a matter of
>>including the -FPIC/-FPIE params for CFLAGS and/or LDFLAGS and running
>>configure && make, or are there issues I should be aware of (for
>>example, should I set parameters for cross-building)?
>>
>>Background: Android 5.0 requires PIE, which means that upgrading will
>>break my existing native build environment...unless I can build a PIE
>>GCC first, then re-build all of my utilities with it.