Skip to content

Commit 938212f

Browse files
build: enable pointer authentication for branch protection on arm64
PR-URL: nodejs#43200 Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
1 parent 159b4d7 commit 938212f

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
@@ -1208,6 +1208,10 @@ def configure_node(o):
12081208

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

1211+
# Enable branch protection for arm64
1212+
if target_arch == 'arm64':
1213+
o['cflags']+=['-msign-return-address=all']
1214+
12111215
if options.node_snapshot_main is not None:
12121216
if options.shared:
12131217
# This should be possible to fix, but we will need to refactor the

0 commit comments

Comments
 (0)