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
Branch
PR29695
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 31377
Build 62252: Build Diff
Build 62251: arc lint + arc unit