Skip to content

Commit 7850c5f

Browse files
committed
guix: build GCC with --enable-standard-branch-protection
To enable Branch Target Identification Mechanism and Return Address Signing by default at configure time use the `--enable-standard-branch-protection` option. This is equivalent to having `-mbranch-protection=standard` during compilation. This can be explicitly disabled during compilation by passing the `-mbranch-protection=none` option which turns off all types of branch protections. See: https://gcc.gnu.org/install/specific.html#aarch64-x-x
1 parent 71b6319 commit 7850c5f

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
@@ -423,6 +423,7 @@ inspecting signatures in Mach-O binaries.")
423423
(list "--enable-initfini-array=yes",
424424
"--enable-default-ssp=yes",
425425
"--enable-default-pie=yes",
426+
"--enable-standard-branch-protection=yes",
426427
building-on)))
427428
((#:phases phases)
428429
`(modify-phases ,phases

0 commit comments

Comments
 (0)