Skip to content

Commit afd2ce3

Browse files
authored
Merge pull request #291 from CBBBrother/fix_x86_64_tls_stack_protector
fix tls stack protector on x86_64
2 parents 0d95765 + 7f5f436 commit afd2ce3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/asm/make_x86_64_sysv_elf_gas.S

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ make_fcontext:
7777
#if defined(BOOST_CONTEXT_TLS_STACK_PROTECTOR)
7878
/* save stack guard */
7979
movq %fs:0x28, %rcx /* read stack guard from TLS record */
80-
movq %rcx, 0x8(%rsp) /* save stack guard */
80+
movq %rcx, 0x8(%rax) /* save stack guard */
8181
#endif
8282

8383
/* compute abs address of label trampoline */

0 commit comments

Comments
 (0)