mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-19 14:45:08 +01:00
build: add -mbranch-protection=bti
to aarch64 hardening flags
This is a simpler (less hardening) version of #24123. Scoped to aarch64 to avoid unused command line option warnings when building on x86_64. Related to #19075.
This commit is contained in:
parent
04265ba937
commit
61a6c3b0e9
@ -964,6 +964,11 @@ if test "$use_hardening" != "no"; then
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
case $host in
|
||||||
|
*aarch64*)
|
||||||
|
AX_CHECK_COMPILE_FLAG([-mbranch-protection=bti], [HARDENED_CXXFLAGS="$HARDENED_CXXFLAGS -mbranch-protection=bti"])
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
dnl When enable_debug is yes, all optimizations are disabled.
|
dnl When enable_debug is yes, all optimizations are disabled.
|
||||||
dnl However, FORTIFY_SOURCE requires that there is some level of optimization, otherwise it does nothing and just creates a compiler warning.
|
dnl However, FORTIFY_SOURCE requires that there is some level of optimization, otherwise it does nothing and just creates a compiler warning.
|
||||||
|
Loading…
Reference in New Issue
Block a user