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
  • Loading branch information
jgowdy committed Aug 9, 2022
1 parent 4a3ba87 commit d42c42c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions configure.py
Expand Up @@ -1231,6 +1231,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 d42c42c

Please sign in to comment.