2
0
mirror of https://github.com/boostorg/context.git synced 2026-01-19 04:02:17 +00:00
Files
context/src
Zayd Rajab 1be6822473 [AArch64][BTI] Add BTI hint + GNU property to fcontext trampolines (ELF/GAS)
The AArch64 fcontext trampolines (jump_fcontext, make_fcontext, ontop_fcontext)
are indirect-entry-points. On BTI-enforcing systems they must begin with a BTI
or the first resume can trap with SIGILL.

Insert `bti c` (hint #34) at each entry under `__ARM_FEATURE_BTI_DEFAULT`, and
emit `GNU_PROPERTY_AARCH64_FEATURE_1_BTI` from each AArch64 assembly file so
linkers map the DSO with PROT_BTI without requiring -z force-bti.

Scope: ELF/GAS AArch64 trampolines only; +4 bytes per entry

Fixes #308
2025-08-15 22:13:10 +00:00
..
2021-06-12 22:23:08 +03:00
2013-01-07 21:24:57 +00:00
2018-04-11 06:23:29 +02:00
2014-02-20 19:41:07 +01:00