]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
glibc: Enable CET
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 5 Aug 2021 16:00:45 +0000 (16:00 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 5 Aug 2021 16:00:45 +0000 (16:00 +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 4bc8dd40d2cad4d73a288b81b3ac3e5186e9241e..6f3f3a274f45c711dfcdc648e4d79913caaaf363 100644 (file)
--- a/lfs/glibc
+++ b/lfs/glibc
@@ -69,6 +69,14 @@ EXTRA_CONFIG += \
        --enable-bind-now \
        --disable-crypt
 
+ifeq "$(BUILD_ARCH)" "x86_64"
+       EXTRA_CONFIG += --enable-cet
+endif
+
+ifeq "$(BUILD_ARCH)" "i586"
+       EXTRA_CONFIG += --enable-cet
+endif
+
 ###############################################################################
 # Top-level Rules
 ###############################################################################