This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Error Building GCC as PIE
- From: Jeffrey Walton <noloader at gmail dot com>
- To: Cyd Haselton <chaselton at gmail dot com>
- Cc: "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Sun, 21 Jun 2015 23:36:04 -0400
- Subject: Re: Error Building GCC as PIE
- Authentication-results: sourceware.org; auth=none
- References: <36F38A10-BFB2-40DE-BD89-34C243C43B9C at gmail dot com> <4BA77817-731F-4D4F-AC88-5606D1615D50 at gmail dot com> <3F3CD0D0-9A01-46BC-8A53-FF4A0E400696 at gmail dot com>
- Reply-to: noloader at gmail dot com
On Fri, Jun 19, 2015 at 1:23 PM, Cyd Haselton <chaselton@gmail.com> wrote:
> While researching how to cross-compile for PIE, I discovered my theory was based on a faulty premise: that PIE binaries will only run on Android 5.0.
>
As far as I know, this is true. Android 5.0 requires PIE. From
"Security Enhancements in Android 5.0"
(https://source.android.com/devices/tech/security/enhancements/enhancements50.html):
Non-PIE linker support removed. Android now requires all
dynamically linked executables to support PIE (position
independent executables). This enhances Androidâs address
space layout randomization (ASLR) implementation.
Jeff