Skip to content

Instantly share code, notes, and snippets.

@ntddk
Last active August 29, 2015 14:14
Show Gist options
  • Save ntddk/7e4430dc495db30664b6 to your computer and use it in GitHub Desktop.
Save ntddk/7e4430dc495db30664b6 to your computer and use it in GitHub Desktop.
#include <stdio.h>
__attribute__((constructor)) void constructor(){
printf("constructor\n");
}
int __libc_start_main(){
printf("__libc_start_main\n");
return 0;
}
int __libc_csu_init(){
printf("__libc_csu_init\n");
return 0;
}
int __libc_csu_fini(){
printf("__libc_csu_fini\n");
return 0;
}
int main(){
printf("main\n");
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment