summaryrefslogtreecommitdiff
path: root/dummy/dummy_alt_start.asm
blob: 7196dfb79228b6e4dd77063df94fc50af4460161 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
; dummy: dummy_simple.asm, but using another start address
; NOTE: we need to specify "-e _start" in the ld command line, and make _start in .text section
; nasm -f win32 -o dummy.obj dummy_alt_start.asm
; i686-w64-mingw32-ld -e _start -o dummy.exe dummy.obj -lkernel32

global _start

extern __imp__ExitProcess@4

section .text

header:
	int3
_start:
	push 2
	call [__imp__ExitProcess@4]