This repository was archived by the owner on Aug 31, 2021. It is now read-only.
Commit 9ec7040
committed
[[ Bug ]] Fix handler function pointers on newer Android versions
This patch fixes an issue with the generation of handler function
pointers on newer versions of Android (starting with 9).
The issue is that libffi is failing to generate closure trampolines
in memory which has the executable permission bit set. This has been
worked around by explicitly changing the memory protection flags
to be read/write/exec *after* libffi has created the closure.1 parent 4bee4a0 commit 9ec7040
1 file changed
+41
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
304 | 338 | | |
305 | 339 | | |
306 | 340 | | |
| |||
326 | 360 | | |
327 | 361 | | |
328 | 362 | | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
329 | 370 | | |
330 | 371 | | |
331 | 372 | | |
| |||
0 commit comments