Skip to content

Commit 89bf11b

Browse files
committed
guix: build Linux GCC with --enable-cet
Similar to #29695, and in the same vein of explicitly configuring hardening options in our release toolchain. See https://gcc.gnu.org/install/configure.html: > Enable building target run-time libraries with control-flow instrumentation, > see `-fcf-protection option`. When --enable-cet is specified target > libraries are configured to add `-fcf-protection` and, if needed, > other target specific options to a set of building options. > `--enable-cet=auto` is default. CET is enabled on Linux/x86 if target > binutils supports Intel CET instructions and disabled otherwise. > In this case, the target libraries are configured to get additional > `-fcf-protection` option.
1 parent cf0120f commit 89bf11b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

contrib/guix/manifest.scm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,7 @@ inspecting signatures in Mach-O binaries.")
434434
"--enable-default-ssp=yes",
435435
"--enable-default-pie=yes",
436436
"--enable-standard-branch-protection=yes",
437+
"--enable-cet=yes",
437438
building-on)))
438439
((#:phases phases)
439440
`(modify-phases ,phases

0 commit comments

Comments
 (0)