From: Michael Tremer Date: Fri, 10 Mar 2023 14:58:54 +0000 (+0000) Subject: macros: Use CET on x86_64 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=60853ed1c875fe1d8876c78651b9a61067e63c0e;p=people%2Fstevee%2Fpakfire.git macros: Use CET on x86_64 Signed-off-by: Michael Tremer --- diff --git a/macros/cflags.macro b/macros/cflags.macro index ad41dc19..b8b1e51b 100644 --- a/macros/cflags.macro +++ b/macros/cflags.macro @@ -41,6 +41,9 @@ build # Arch: x86_64 CFLAGS_x86_64 = -m64 -march=x86-64-v2 -mtune=generic + # Enable Control Flow Technology (CET) + CFLAGS_x86_64 += -fcf-protection=full + # Arch: aarch64 CFLAGS_aarch64 = -mbranch-protection=standard