2
0
mirror of https://github.com/boostorg/context.git synced 2026-01-19 04:02:17 +00:00

Merge pull request #291 from CBBBrother/fix_x86_64_tls_stack_protector

fix tls stack protector on x86_64
This commit is contained in:
Oliver Kowalke
2025-02-21 14:57:43 +01:00
committed by GitHub

View File

@@ -77,7 +77,7 @@ make_fcontext:
#if defined(BOOST_CONTEXT_TLS_STACK_PROTECTOR)
/* save stack guard */
movq %fs:0x28, %rcx /* read stack guard from TLS record */
movq %rcx, 0x8(%rsp) /* save stack guard */
movq %rcx, 0x8(%rax) /* save stack guard */
#endif
/* compute abs address of label trampoline */