[PATCH] D38430: Enable -pie and --enable-new-dtags by default on Android.

Evgenii Stepanov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 29 14:50:31 PDT 2017


eugenis created this revision.

Also enable -no-pie on Gnu toolchain (previously available on Darwin only).

Non-PIE executables won't even start on recent Android, and DT_RPATH is ignored by the loader.


https://reviews.llvm.org/D38430

Files:
  clang/lib/Driver/SanitizerArgs.cpp
  clang/lib/Driver/ToolChains/Gnu.cpp
  clang/lib/Driver/ToolChains/Linux.cpp
  clang/test/Driver/android-pie.c
  clang/test/Driver/fsanitize.c
  clang/test/Driver/linux-ld.c
  clang/test/Driver/pic.c
  clang/test/Driver/sanitizer-ld.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38430.117229.patch
Type: text/x-patch
Size: 14306 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170929/20d4b30a/attachment-0001.bin>


More information about the cfe-commits mailing list