Skip to content

Commit d04324a

Browse files
committed
Merge bitcoin/bitcoin#29695: guix: build GCC with --enable-standard-branch-protection
7850c5f guix: build GCC with --enable-standard-branch-protection (fanquake) Pull request description: This is one change extracted from #24123 (which now produces fully BTI & PAC enabled bins), which will mean that everything in depends, for Guix builds, is compiled using `-mbranch-protection=standard`. Turning this on by default, is similar to what we already do with `--enable-default-ssp`, `--enable-default-pie` etc. See: https://gcc.gnu.org/install/specific.html#aarch64-x-x > 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. ACKs for top commit: TheCharlatan: ACK 7850c5f Tree-SHA512: 18f898da27021bab502e708ea5fa9b325352f8f6e23d9488a2a0feda87e0af2ac0e4f87b3af9ad6a9a37bbfc99ab0285de4f0bdc174dcd38163d92c122e958e2
2 parents 19b968f + 7850c5f commit d04324a

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)