Skip to content

Commit aaad7a6

Browse files
jgowdy-godaddyjuanarbol
authored andcommitted
build: enable pointer authentication for branch protection on arm64
PR-URL: #43200 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Darshan Sen <[email protected]>
1 parent 6196bce commit aaad7a6

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)