summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dummy/dummy_alt_start.asm16
1 files changed, 16 insertions, 0 deletions
diff --git a/dummy/dummy_alt_start.asm b/dummy/dummy_alt_start.asm
new file mode 100644
index 0000000..7196dfb
--- /dev/null
+++ b/dummy/dummy_alt_start.asm
@@ -0,0 +1,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]