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 <rlau@redhat.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
  • Loading branch information
jgowdy-godaddy authored Aug 12, 2022
1 parent 159b4d7 commit 938212f
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 @@ -1208,6 +1208,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 938212f

Please sign in to comment.