Improved Windows support
This commit is contained in:
parent
a7835a4494
commit
32ae625af4
8 changed files with 50 additions and 8 deletions
6
src/arch/x64/AlignStack.go
Normal file
6
src/arch/x64/AlignStack.go
Normal file
|
@ -0,0 +1,6 @@
|
|||
package x64
|
||||
|
||||
// AlignStack aligns RSP on a 16-byte boundary.
|
||||
func AlignStack(code []byte) []byte {
|
||||
return append(code, 0x48, 0x83, 0xE4, 0xF0)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue