Commit ad97b40
authored
Enable PACBTI on OpenBSD/arm64. (#1792)
BTI enforcement is mandatory, which means if PAC and BTI instructions
are not emitted, then the compiled binary gets killed with SIGILL. The
platform default compiler achieves enabling PAC and BTI by embedding the
relevant enabled Clang compilation option flags into the local platform
toolchain, which affects C/C++ code generation.
For bootstrapping purposes, we need to make this change in the legacy C++
driver in swiftlang/swift#78394; this is the equivalent change for the
new driver.
It's not quite clear whether the flags need to be introduced in
BackendJob.swift as well as FrontendJobHelpers.swift; just in case, add
them in both locations.1 parent b5e4bd5 commit ad97b40
1 file changed
+10
-0
lines changedLines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
164 | 174 | | |
165 | 175 | | |
0 commit comments