Skip to content

Commit

Permalink
Address Craig's comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kito-cheng authored and cmuellner committed Jan 21, 2025
1 parent e0e93a4 commit a433607
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/toolchain-conventions.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -398,9 +398,10 @@ instructions to protect the program against control flow hijacking attacks.
`-fcf-protection` is alias to `-fcf-protection=full`.

- `none`: Disable control flow protection.
- `full`: Protect all control flow instructions, will enable branch protection
and return protection if the `Zimop` extension is available.
- `branch`: Protect branch instructions only by insert landing pad.
- `full`: Protects all control flow instructions. Branch protection does not
require the `Zimop` extension, but return protection will be enabled only if
`Zimop` is available.
- `branch`: Protect branch instructions only by inserting landing pad.
- `return`: Protect return instructions only, this require `Zimop` extension.

=== `-mcf-branch-label-scheme=[unlabeled|func-sig]`
Expand Down

0 comments on commit a433607

Please sign in to comment.