Hi Kalyani,
According to https://trustedfirmware-a.readthedocs.io/en/latest/getting_started/build-opt... you need a compiler supporting the -mbranch-protection option. This seems to be the case from gcc 9.3 onwards: https://gcc.gnu.org/onlinedocs/gcc-9.3.0/gcc/AArch64-Options.html#AArch64-Op...
Notice a GCC10.2 cross-compiler release is planned by end of this year according to this page: https://community.arm.com/developer/tools-software/tools/b/tools-software-id...
Regards, Olivier.
________________________________________ From: TF-A tf-a-bounces@lists.trustedfirmware.org on behalf of Varun Wadekar via TF-A tf-a@lists.trustedfirmware.org Sent: 03 September 2020 04:08 To: Kalyani Chidambaram Vaidyanathan; tf-a@lists.trustedfirmware.org Subject: Re: [TF-A] GCC compiler option to support "xpaci" instruction
<Dummy response to get the email through to the mailing list>
From: Kalyani Chidambaram Vaidyanathan kalyanic@nvidia.com Sent: Wednesday, September 2, 2020 3:43 PM To: tf-a@lists.trustedfirmware.org Cc: Varun Wadekar vwadekar@nvidia.com Subject: GCC compiler option to support "xpaci" instruction
Hi, We are using gcc-arm-9.2 toolchain and see that this is not supporting the “xpaci” instruction. Is there any compiler flag that has to be included to support this?
Reference code that uses “xpaci” when PAUTH is enabled - https://github.com/ARM-software/arm-trusted-firmware/blob/master/bl31/aarch6...
Thanks, Kalyani