actually, _start
is real magic word.
nomain.c:
#include <stdio.h>
extern void _exit(register int);
int _start(){
printf("Hello world!\n");
_exit(0);
}
$ gcc -o nomain nomain.c -nostartfiles
$ ./nomain
Hello world!
actually, _start
is real magic word.
nomain.c:
#include <stdio.h>
extern void _exit(register int);
int _start(){
printf("Hello world!\n");
_exit(0);
}
$ gcc -o nomain nomain.c -nostartfiles
$ ./nomain
Hello world!
For further actions, you may consider blocking this person and/or reporting abuse
Labby -
chrisarg -
Paul J. Lucas -
Odumosu Matthew -
Top comments (0)