Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

Commit

Permalink
Match the behavior of the Constrained Naked RFC
Browse files Browse the repository at this point in the history
  • Loading branch information
npmccallum committed Aug 24, 2020
1 parent 1562b0f commit f12d7cd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions src/arch/x86_64/sysv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ impl Context {
"mov [rdi + 0x38], rsi",
"mov rax, 1",
"jmp rsi",
in("rdi") self,
options(noreturn)
)
}
Expand All @@ -63,7 +62,6 @@ impl Context {
"mov rbp, qword ptr [rdi + 0x28]",
"mov rsp, qword ptr [rdi + 0x30]",
"jmp qword ptr [rdi + 0x38]",
in("rdi") self,
options(noreturn)
)
}
Expand Down
4 changes: 0 additions & 4 deletions src/arch/x86_64/win.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ impl Context {
"mov [rdx + 0x48], rcx",
"mov rax, 1",
"jmp rcx",

in("rdx") self,
options(noreturn)
)
}
Expand All @@ -66,8 +64,6 @@ impl Context {
"mov rbp, qword ptr [rdx + 0x38]",
"mov rsp, qword ptr [rdx + 0x40]",
"jmp qword ptr [rdx + 0x48]",

in("rdx") self,
options(noreturn)
)
}
Expand Down

0 comments on commit f12d7cd

Please sign in to comment.