[clang] [Android][Driver] Enable PAC/BTI for Android by Default (PR #218066)

Sharjeel Khan via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 21 16:51:02 PDT 2026


================
@@ -0,0 +1,16 @@
+// Check that Android enables PAC and BTI by default on AArch64.
+// RUN: %clang --target=aarch64-linux-android -### -c %s 2>&1 \
+// RUN:   | FileCheck %s --check-prefix=ANDROID-DEFAULT
+// ANDROID-DEFAULT: "-msign-return-address=non-leaf" "-msign-return-address-key=a_key" "-mbranch-target-enforce"
----------------
Sharjeel-Khan wrote:

Done

https://github.com/llvm/llvm-project/pull/218066


More information about the cfe-commits mailing list