aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Tsichritzis <john.tsichritzis@arm.com>2019-05-07 10:42:22 +0100
committerJohn Tsichritzis <john.tsichritzis@arm.com>2019-05-07 10:51:44 +0100
commit96e250320b9c1cec90946e93d87f27fdafac5092 (patch)
tree9805a9ad3d674ccd3d5d2f7dc83696955a1c947d
parent1f018ba629bd534a14bbf133d4e9fa61e2f09686 (diff)
downloadtf-a-tests-96e250320b9c1cec90946e93d87f27fdafac5092.tar.gz
Fix AArch32 build error
Pointer authentication code should be conditionally compiled only if TFTF is built for AArch64 since AArch32 doesn't support pointer authentication. This was previously causing a compilation error. Change-Id: I97a0ea66f562cf2ebb41478b1b31a26bcaf815b2 Signed-off-by: John Tsichritzis <john.tsichritzis@arm.com>
-rw-r--r--tftf/tests/extensions/ptrauth/test_ptrauth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tftf/tests/extensions/ptrauth/test_ptrauth.c b/tftf/tests/extensions/ptrauth/test_ptrauth.c
index a1f41e28d..564c56d9f 100644
--- a/tftf/tests/extensions/ptrauth/test_ptrauth.c
+++ b/tftf/tests/extensions/ptrauth/test_ptrauth.c
@@ -67,7 +67,7 @@ test_result_t test_pauth_reg_access(void)
* Makes a call to psci version, and checks that the EL3 pauth keys are not
* leaked when it returns
*/
-#if __GNUC__ > 7 || (__GNUC__ == 7 && __GNUC_MINOR__ > 0)
+#if (__GNUC__ > 7 || (__GNUC__ == 7 && __GNUC_MINOR__ > 0)) && AARCH64
__attribute__((target("sign-return-address=all")))
#endif
test_result_t test_pauth_leakage(void)
@@ -117,7 +117,7 @@ test_result_t test_pauth_instructions(void)
* Makes a call to TSP ADD, and checks that the checks that the Secure World
* pauth keys are not leaked
*/
-#if __GNUC__ > 7 || (__GNUC__ == 7 && __GNUC_MINOR__ > 0)
+#if (__GNUC__ > 7 || (__GNUC__ == 7 && __GNUC_MINOR__ > 0)) && AARCH64
__attribute__((target("sign-return-address=all")))
#endif
test_result_t test_pauth_leakage_tsp(void)