]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
glibc: Enable CET
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 4 Feb 2022 16:47:23 +0000 (16:47 +0000)
committerPeter Müller <peter.mueller@ipfire.org>
Sat, 5 Feb 2022 12:09:18 +0000 (12:09 +0000)
Enable Intel Control-flow Enforcement Technology (CET) support
to protect the library with indirect branch tracking (IBT) and
shadow stack (SHSTK).

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lfs/glibc

index e7f2a71c533e0aa11f3bf7bd64c14e4367581db7..9c631de4c11762aaacc04f34280eeafff470ca2f 100644 (file)
--- a/lfs/glibc
+++ b/lfs/glibc
@@ -65,6 +65,10 @@ EXTRA_CONFIG += \
        --enable-bind-now \
        --disable-crypt
 
+ifeq "$(BUILD_ARCH)" "x86_64"
+       EXTRA_CONFIG += --enable-cet
+endif
+
 ###############################################################################
 # Top-level Rules
 ###############################################################################