Commit 0aa22dc
authored
[OpenMP][AArch64] Fix branch protection in microtasks (llvm#102317)
Start __kmp_invoke_microtask with PACBTI in order to identify the
function as a valid branch target. Before returning, SP is
authenticated.
Also add the BTI and PAC markers to z_Linux_asm.S.
With this patch, libomp.so can now be generated with DT_AARCH64_BTI_PLT
when built with -mbranch-protection=standard.
The implementation is based on the code available in compiler-rt.1 parent 2c8bd4a commit 0aa22dc
1 file changed
+53
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
179 | 226 | | |
180 | 227 | | |
181 | 228 | | |
| |||
1296 | 1343 | | |
1297 | 1344 | | |
1298 | 1345 | | |
| 1346 | + | |
1299 | 1347 | | |
1300 | 1348 | | |
1301 | 1349 | | |
| |||
1359 | 1407 | | |
1360 | 1408 | | |
1361 | 1409 | | |
| 1410 | + | |
1362 | 1411 | | |
1363 | 1412 | | |
1364 | 1413 | | |
| |||
2452 | 2501 | | |
2453 | 2502 | | |
2454 | 2503 | | |
| 2504 | + | |
| 2505 | + | |
| 2506 | + | |
| 2507 | + | |
0 commit comments