Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bb346ea

Browse filesBrowse files
jgowdy-godaddydanielleadams
authored andcommitted
build: enable pointer authentication for branch protection on arm64
PR-URL: #43200 Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
1 parent 45dcd5c commit bb346ea
Copy full SHA for bb346ea

File tree

Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed
Open diff view settings
Collapse file

‎configure.py‎

Copy file name to clipboardExpand all lines: configure.py
+4Lines changed: 4 additions & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.