aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandrine Bailleux <sandrine.bailleux@arm.com>2019-05-07 13:07:13 +0000
committerTrustedFirmware Code Review <review@review.trustedfirmware.org>2019-05-07 13:07:13 +0000
commit2755ecb5dcab5fac6295245a15afaecfff8eba78 (patch)
tree9805a9ad3d674ccd3d5d2f7dc83696955a1c947d
parent1f018ba629bd534a14bbf133d4e9fa61e2f09686 (diff)
parent96e250320b9c1cec90946e93d87f27fdafac5092 (diff)
downloadtf-a-tests-2755ecb5dcab5fac6295245a15afaecfff8eba78.tar.gz
Merge "Fix AArch32 build error"
-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)