fanquake
commented at 5:47 pm on March 21, 2024:
member
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.
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.
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
7850c5fe20
DrahtBot
commented at 5:47 pm on March 21, 2024:
contributor
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.
Conflicts
Reviewers, this pull request conflicts with the following ones:
#25573 ([POC] guix: produce a fully -static-pie bitcoind by fanquake)
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
DrahtBot added the label
Build system
on Mar 21, 2024
fanquake removed the label
Build system
on Mar 21, 2024
fanquake added the label
DrahtBot Guix build requested
on Mar 21, 2024
DrahtBot
commented at 9:47 am on March 22, 2024:
contributor
DrahtBot removed the label
DrahtBot Guix build requested
on Mar 22, 2024
DrahtBot added the label
Build system
on Mar 22, 2024
luke-jr
commented at 3:18 am on March 23, 2024:
member
Should we be doing something equivalent for aarch64 macOS?
luke-jr referenced this in commit
6a8fa8f26c
on Mar 23, 2024
fanquake
commented at 11:03 am on March 25, 2024:
member
Should we be doing something equivalent for aarch64 macOS?
At some point, yes, however LLVM doesn’t currently expose an option. The only similar option they have is CLANG_DEFAULT_PIE_ON_LINUX (which now defaults to ON in any case). I’ll investigate other ways of doing this.
TheCharlatan approved
TheCharlatan
commented at 12:30 pm on March 26, 2024:
contributor
This is a metadata mirror of the GitHub repository
bitcoin/bitcoin.
This site is not affiliated with GitHub.
Content is generated from a GitHub metadata backup.
generated: 2025-04-18 18:13 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me