Improved Windows support

This commit is contained in:
Eduard Urbach 2024-08-19 17:25:51 +02:00
parent a7835a4494
commit 32ae625af4
Signed by: eduard
GPG key ID: 49226B848C78F6C8
8 changed files with 50 additions and 8 deletions

View 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)
}