mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 21:19:50 +01:00
build: enable pointer authentication for branch protection on arm64
PR-URL: https://github.com/nodejs/node/pull/43200 Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
This commit is contained in:
parent
159b4d7a94
commit
938212f3e7
@ -1208,6 +1208,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
|
||||
|
Loading…
Reference in New Issue
Block a user