Skip to content

Commit

Permalink
build: enable pointer authentication for branch protection on arm64
Browse files Browse the repository at this point in the history
PR-URL: #43200
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
  • Loading branch information
jgowdy-godaddy authored and juanarbol committed Oct 11, 2022
1 parent 6196bce commit aaad7a6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions configure.py
Expand Up @@ -1233,6 +1233,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
Expand Down

0 comments on commit aaad7a6

Please sign in to comment.