Skip to content

Commit 3c698c7

Browse files
jgowdy-godaddyguangwong
authored andcommitted
build: enable pointer authentication for branch protection on arm64
PR-URL: nodejs/node#43200 Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
1 parent 6297e52 commit 3c698c7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

configure.py

+4
Original file line numberDiff line numberDiff line change
@@ -1233,6 +1233,10 @@ def configure_node(o):
12331233

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

1236+
# Enable branch protection for arm64
1237+
if target_arch == 'arm64':
1238+
o['cflags']+=['-msign-return-address=all']
1239+
12361240
if options.node_snapshot_main is not None:
12371241
if options.shared:
12381242
# This should be possible to fix, but we will need to refactor the

0 commit comments

Comments
 (0)