|
Programming C, bash, Python, Perl, PHP, Java, you name it. |
|
Thread Tools | Display Modes |
|
|||
why does this simple assembly program abort trap?
Code:
section .note.openbsd.ident align 2 dd 8, 4, 1 db 'OpenBSD', 0 dd 0 align 2 extern SDL_Init section .text global _start _start: mov rdi, 0x20 call SDL_Init xor eax, eax inc al syscall Code:
nasm -f elf64 main.asm -o main.o ld -o main main.o -lc -m elf_x86_64_obsd -nopie -L/usr/local/lib -lSDL2 -L/usr/X11R6/lib -R/usr/X11/R6/lib Code:
Abort trap |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PF dynamic adding of ips to table (booby trap port) | irukandji | FreeBSD Security | 8 | 5th December 2013 12:09 AM |
learn assembly | ephemera | Book reviews | 5 | 26th December 2012 06:29 PM |
opera bug in openbsd 5.1 release with Abort Trap message | daemonfowl | OpenBSD Packages and Ports | 2 | 26th May 2012 06:42 AM |
Sparc assembly anyone? | Randux | Programming | 4 | 24th June 2011 07:10 AM |
Boot abort with gmirror problem | lil_elvis2000 | FreeBSD General | 1 | 9th May 2008 08:06 PM |