diff options
author | Dan Albert <danalbert@google.com> | 2017-01-31 16:02:43 -0800 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2017-01-31 16:02:43 -0800 |
commit | 95e2e6f6204ea02de9e0dad9bd274e3c5d51a88c (patch) | |
tree | e24508d0f082aff47ffe3c51e5d63b84379d1e36 /linker/linker_main.cpp | |
parent | eb35144e588dc3799b851b8504b0a7db6c9a0b91 (diff) |
Exit failure if trying to load non-PIE.
Amazingly this was actually breaking the NDK's ability to build
libstdc++ for x86.
Test: mma
Bug: None
Change-Id: Iafa55c31fdeb35caca7d7d7a39a3e7afa0713557
Diffstat (limited to 'linker/linker_main.cpp')
-rw-r--r-- | linker/linker_main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linker/linker_main.cpp b/linker/linker_main.cpp index 9ed750536..76344657e 100644 --- a/linker/linker_main.cpp +++ b/linker/linker_main.cpp @@ -321,7 +321,7 @@ static ElfW(Addr) __linker_init_post_relocation(KernelArgumentBlock& args, ElfW( "\"%s\": error: Android 5.0 and later only support " "position-independent executables (-fPIE).\n", g_argv[0]); - exit(0); + exit(EXIT_FAILURE); } // Use LD_LIBRARY_PATH and LD_PRELOAD (but only if we aren't setuid/setgid). |