mirror of
https://github.com/boostorg/context.git
synced 2026-01-19 04:02:17 +00:00
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