Skip to content

Instantly share code, notes, and snippets.

@perillamint
Created April 1, 2015 19:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save perillamint/ed9675453f37afeced96 to your computer and use it in GitHub Desktop.
Save perillamint/ed9675453f37afeced96 to your computer and use it in GitHub Desktop.
cwithoutmain
#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