Commit 81f7329f authored by Jinoh Kang's avatar Jinoh Kang Committed by Alexandre Julliard

loader: Fix calculation of thread_data address in Linux x86-64 preloader.

parent 73c9bb07
......@@ -353,7 +353,7 @@ __ASM_GLOBAL_FUNC(_start,
"movq %rsp,%rax\n\t"
"leaq -144(%rsp),%rsp\n\t" /* allocate some space for extra aux values */
"movq %rax,(%rsp)\n\t" /* orig stack pointer */
"movq thread_data(%rip),%rsi\n\t"
"leaq thread_data(%rip),%rsi\n\t"
"movq $0x1002,%rdi\n\t" /* ARCH_SET_FS */
"movq $158,%rax\n\t" /* SYS_arch_prctl */
"syscall\n\t"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment