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: nodejs/node#43200
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
  • Loading branch information
jgowdy-godaddy authored and guangwong committed Jan 3, 2023
1 parent 6297e52 commit 3c698c7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions configure.py
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 3c698c7

Please sign in to comment.