Skip to content
Snippets Groups Projects
Verified Commit dfb23407 authored by Jacob Lorentzon's avatar Jacob Lorentzon
Browse files

Fix signal fxrstor offset.

parent 66a32016
No related branches found
No related tags found
No related merge requests found
......@@ -126,8 +126,8 @@ asmfunction!(__relibc_internal_fork_ret: ["
mov rsi, [rsp + 8]
call {child_hook}
ldmxcsr [rsp+16]
fldcw [rsp+24]
ldmxcsr [rsp + 16]
fldcw [rsp + 24]
xor rax, rax
......@@ -152,14 +152,10 @@ asmfunction!(__relibc_internal_rlct_clone_ret: ["
pop r8
pop r9
sub rsp, 8
mov DWORD PTR [rsp], 0x00001F80
ldmxcsr [rsp]
mov WORD PTR [rsp], 0x037F
fldcw [rsp]
add rsp, 8
mov DWORD PTR [rsp - 8], 0x00001F80
ldmxcsr [rsp - 8]
mov WORD PTR [rsp - 8], 0x037F
fldcw [rsp - 8]
# Call entry point
call rax
......@@ -275,7 +271,7 @@ asmfunction!(__relibc_internal_sigentry: ["
add rsp, 16
fxrstor64 [rsp]
fxrstor64 [rsp + 16 * 16]
cmp byte ptr [rip + {supports_avx}], 0
je 6f
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment