From 1004153f256f0391d3a972422e9c7b06ed100a81 Mon Sep 17 00:00:00 2001 From: Jun He Date: Wed, 12 Feb 2025 15:35:33 +0800 Subject: [PATCH] Enable PAC/BTI as default for all components developed with c/c++ Signed-off-by: Jun He Change-Id: Ifd6ae16c41bd85ae5559095a668de95cee4da1c7 --- openEuler-rpm-config.spec | 5 ++++- rpmrc | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/openEuler-rpm-config.spec b/openEuler-rpm-config.spec index a493386..44064da 100644 --- a/openEuler-rpm-config.spec +++ b/openEuler-rpm-config.spec @@ -3,7 +3,7 @@ Name: %{vendor}-rpm-config Version: 31 -Release: 15 +Release: 16 License: GPL+ Summary: specific rpm configuration files URL: https://gitee.com/src-openeuler/openEuler-rpm-config @@ -190,6 +190,9 @@ sed -i "s/@VENDOR@/%{vendor}/g" `grep "@VENDOR@" -rl %{buildroot}%{_rpmconfigdir %{rpmvdir}/find-requires.ksyms %changelog +* Tue Feb 18 2025 Jun He - 31-16 +- Add compile flag (-mbranch-protection=standard) to enable PAC/BTI features on aarch64 as default + * Mon Feb 24 2025 yinchuang - 31-15 - Remove packages affected by mold diff --git a/rpmrc b/rpmrc index 45840e6..5f87e96 100644 --- a/rpmrc +++ b/rpmrc @@ -5,7 +5,7 @@ optflags: athlon %{__global_compiler_flags} -m32 -march=athlon -fasynchronous-un optflags: ia64 %{__global_compiler_flags} optflags: x86_64 %{__global_compiler_flags} -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -optflags: aarch64 %{__global_compiler_flags} -fasynchronous-unwind-tables -fstack-clash-protection +optflags: aarch64 %{__global_compiler_flags} -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection optflags: riscv64 %{__global_compiler_flags} -fasynchronous-unwind-tables -fstack-clash-protection optflags: loongarch64 %{__global_compiler_flags} -fasynchronous-unwind-tables -fstack-clash-protection -- Gitee