Message ID | gkrk07dczbq.fsf@arm.com |
---|---|
Headers | show |
Series | arm: Enables return address verification and branch target identification on Cortex-M | expand |
Andrea Corallo via Gcc-patches <gcc-patches@gcc.gnu.org> writes: > Hi all, > > as I respinned few patches, dropped one and added another, I'm reposting > this series thant enables return address verification and branch target > identification based on Armv8.1-M Pointer Authentication and Branch > Target Identification Extension [1] for Arm Cortex-M. > > This feature is controlled by the newly introduced '-mbranch-protection' > option, contextually the Armv8.1-M Mainline target feature '+pacbti' is > added. > > Best Regards > > Andrea > > [1] > <https://community.arm.com/developer/ip-products/processors/b/processors-ip-blog/posts/armv8-1-m-pointer-authentication-and-branch-target-identification-extension> Hi all, FYI I've pushed these rebased on gcc-12 in 'endors/ARM/arm-12-m-pacbti'. Best Regards Andrea
Hi, This patch supports following -march/-mbranch-protection combination by linking them to existing pacbti multilibs. $ -march=armv8.1-m.main+pacbti+fp.dp+mve.fp -mbranch-protection=standard -mfloat-abi=hard -mthumb $ -march=armv8.1-m.main+pacbti+fp.dp+mve -mbranch-protection=standard -mfloat-abi=hard -mthumb $ -march=armv8.1-m.main+dsp+pacbti+fp.dp -mbranch-protection=standard -mfloat-abi=hard -mthumb Regression tested on arm-none-eabi and bootstrapped on arm-none-linux-gnueabihf. Ok for master? Regards, Srinath. gcc/ChangeLog: 2022-08-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com> * config/arm/t-rmprofile: Add pacbti multililb variants. gcc/testsuite/ChangeLog: 2022-08-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com> * gcc.target/arm/pac-10.c: New test. * gcc.target/arm/pac-11.c: Likewise. * gcc.target/arm/pac-12.c: Likewise.
On 12/08/2022 18:10, Srinath Parvathaneni via Gcc-patches wrote: > Hi, > > This patch supports following -march/-mbranch-protection combination by linking them > to existing pacbti multilibs. > > $ -march=armv8.1-m.main+pacbti+fp.dp+mve.fp -mbranch-protection=standard -mfloat-abi=hard -mthumb > $ -march=armv8.1-m.main+pacbti+fp.dp+mve -mbranch-protection=standard -mfloat-abi=hard -mthumb > $ -march=armv8.1-m.main+dsp+pacbti+fp.dp -mbranch-protection=standard -mfloat-abi=hard -mthumb > > Regression tested on arm-none-eabi and bootstrapped on arm-none-linux-gnueabihf. > > Ok for master? > > Regards, > Srinath. > > gcc/ChangeLog: > > 2022-08-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com> > > * config/arm/t-rmprofile: Add pacbti multililb variants. > > gcc/testsuite/ChangeLog: > > 2022-08-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com> > > * gcc.target/arm/pac-10.c: New test. > * gcc.target/arm/pac-11.c: Likewise. > * gcc.target/arm/pac-12.c: Likewise. Please resend with a correctly attached patch. You've used octet-stream rather than a text format. R.