Skip to content

Commit

Permalink
chore: rename asm files
Browse files Browse the repository at this point in the history
  • Loading branch information
f1zm0 committed Apr 19, 2023
1 parent 25f21db commit 7b33816
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions internal/resolver/asm64.s → internal/resolver/ldr_amd64.s
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

// func getNtdllBaseAddr() uintptr
TEXT ·getNtdllBaseAddr(SB),NOSPLIT,$0

// TEB->ProcessEnvironmentBlock
XORQ AX, AX
MOVQ 0x30(GS), AX
Expand Down Expand Up @@ -110,4 +109,3 @@ TEXT ·getExportsAddressOfNameOrdinals(SB),NOSPLIT,$0-16

MOVQ AX, ret+16(FP)
RET

File renamed without changes.
3 changes: 2 additions & 1 deletion asm64.s → syscall_amd64.s
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
// syscall implementation is a mix of:
// - https://golang.org/src/runtime/sys_windows_amd64.s
// - https://github.com/C-Sto/BananaPhone/blob/master/pkg/BananaPhone/asm_x64.s#L96
// with modifications to support indirect syscall execution via a trampoline in ntdll.dll
// with custom modifications to support indirect syscall execution
// via a trampoline (syscall;ret instruction) in ntdll.dll

// func execIndirectSyscall(ssn uint16, trampoline uintptr, argh ...uintptr) (errcode uint32)
TEXT ·execIndirectSyscall(SB),NOSPLIT, $0-32
Expand Down

0 comments on commit 7b33816

Please sign in to comment.