Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
34dae47b
Commit
34dae47b
authored
Jun 22, 2020
by
Mark Dykes
Committed by
TrustedFirmware Code Review
Jun 22, 2020
Browse files
Merge "TF-A: Add ARMv8.5 'bti' build option" into integration
parents
453e12c2
3768fecf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
34dae47b
...
...
@@ -121,6 +121,10 @@ else ifeq (${BRANCH_PROTECTION},3)
# Extend the signing to include leaf functions
BP_OPTION
:=
pac-ret+leaf
ENABLE_PAUTH
:=
1
else
ifeq
(${BRANCH_PROTECTION},4)
# Turn on branch target identification mechanism
BP_OPTION
:=
bti
ENABLE_BTI
:=
1
else
$(error
Unknown
BRANCH_PROTECTION
value
${BRANCH_PROTECTION})
endif
...
...
docs/getting_started/build-options.rst
View file @
34dae47b
...
...
@@ -88,6 +88,7 @@ Common build options
- 1: Enables all types of branch protection features
- 2: Return address signing to its standard level
- 3: Extend the signing to include leaf functions
- 4: Turn on branch target identification mechanism
The table below summarizes ``BRANCH_PROTECTION`` values, GCC compilation options
and resulting PAuth/BTI features.
...
...
@@ -103,6 +104,8 @@ Common build options
+-------+--------------+-------+-----+
| 3 | pac-ret+leaf | Y | N |
+-------+--------------+-------+-----+
| 4 | bti | N | Y |
+-------+--------------+-------+-----+
This option defaults to 0 and this is an experimental feature.
Note that Pointer Authentication is enabled for Non-secure world
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment