How to change the entry point of a C program compiled with gcc ? Just like in the following code
#include<stdio.h> int entry() //entry is the entry point instead of main { return 0; }
It's a linker setting:
-Wl,-eentry
the -Wl,... thing passes arguments to the linker, and the linker takes a -e argument to set the entry function
-Wl,...
-e
2.1m questions
2.1m answers
60 comments
57.0k users