How to change entry point of C program with gcc?

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

Leave a Comment