Skip to content

Commit bb346ea

Browse files
jgowdy-godaddydanielleadams
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 45dcd5c commit bb346ea

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

12381238
o['variables']['want_separate_host_toolset'] = int(cross_compiling)
12391239

1240+
# Enable branch protection for arm64
1241+
if target_arch == 'arm64':
1242+
o['cflags']+=['-msign-return-address=all']
1243+
12401244
if options.node_snapshot_main is not None:
12411245
if options.shared:
12421246
# This should be possible to fix, but we will need to refactor the

0 commit comments

Comments
 (0)