Skip to content

Commit

Permalink
build: enable pointer authentication for branch protection on arm64
Browse files Browse the repository at this point in the history
PR-URL: #43200
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Darshan Sen <[email protected]>
  • Loading branch information
jgowdy-godaddy authored and targos committed Sep 5, 2022
1 parent 675526f commit 556dc83
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -1233,6 +1233,10 @@ def configure_node(o):

o['variables']['want_separate_host_toolset'] = int(cross_compiling)

# Enable branch protection for arm64
if target_arch == 'arm64':
o['cflags']+=['-msign-return-address=all']

if options.node_snapshot_main is not None:
if options.shared:
# This should be possible to fix, but we will need to refactor the
Expand Down

0 comments on commit 556dc83

Please sign in to comment.