]> git.ipfire.org Git - people/ms/pakfire.git/commitdiff
macros: Use CET on x86_64
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 10 Mar 2023 14:58:54 +0000 (14:58 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 10 Mar 2023 14:58:54 +0000 (14:58 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
macros/cflags.macro

index ad41dc19ec12dadc4c5ea7d910d200c02c5dcc42..b8b1e51bdde4579108911cc4278076f2fa608c98 100644 (file)
@@ -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