Page MenuHomePhabricator

guix: build GCC with --enable-standard-branch-protection
ClosedPublic

Authored by Fabien on Thu, Nov 28, 20:47.

Details

Reviewers
PiRK
Group Reviewers
Restricted Project
Commits
rABC287c419afba8: guix: build GCC with --enable-standard-branch-protection
Summary
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

Backport of core#29695.

Depends on D17231.

Test Plan

Run the linux guix build.

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable