mirror of
https://github.com/Alex313031/thorium.git
synced 2025-01-10 11:57:48 -03:00
Enable PAC for >=ARMv8.3
This commit is contained in:
parent
59da786468
commit
d66f697530
1 changed files with 6 additions and 1 deletions
|
@ -129,7 +129,12 @@ if (current_cpu == "arm" || v8_current_cpu == "arm") {
|
|||
# - "pac": Enables Pointer Authentication Code (PAC, featured in Armv8.3)
|
||||
# - "standard": Enables both PAC and Branch Target Identification (Armv8.5).
|
||||
# - "none": No branch protection.
|
||||
arm_control_flow_integrity = "none"
|
||||
arm_control_flow_integrity = "pac"
|
||||
|
||||
# TODO(cavalcantii): enable the feature for the following OSes next.
|
||||
if (is_mac || is_chromeos || is_fuchsia || is_win) {
|
||||
arm_control_flow_integrity = "none"
|
||||
}
|
||||
}
|
||||
assert(arm_control_flow_integrity == "none" ||
|
||||
arm_control_flow_integrity == "standard" ||
|
||||
|
|
Loading…
Reference in a new issue