Created
April 1, 2015 19:24
-
-
Save perillamint/ed9675453f37afeced96 to your computer and use it in GitHub Desktop.
cwithoutmain
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <sys/syscall.h> | |
#include <unistd.h> | |
_start() { | |
char *hello = "Hello, World!\n"; | |
syscall(__NR_write, 1, hello, 14); | |
syscall(__NR_exit, 0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment