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
Related Contents:
- “int main (vooid)”? How does that work?
- Is main() really start of a C++ program?
- Why main does not return 0 here?
- Is ‘int main;’ a valid C/C++ program?
- Can argc be zero on a POSIX system?
- What are the valid signatures for C’s main() function?
- Compile and run program without main() in C
- Is char *envp[] as a third argument to main() portable
- How does this C program compile and run with two main functions?
- Why does declaring main as an array compile?
- Difference between int main() and int main(void)?
- int main() vs void main() in C [duplicate]
- Removing trailing newline character from fgets() input
- size_t vs. uintptr_t
- C fopen vs open
- C dynamically growing array
- Are negative array indexes allowed in C?
- Why does “sizeof(a ? true : false)” give an output of four bytes?
- Why can’t (or doesn’t) the compiler optimize a predictable addition loop into a multiplication?
- How to break out of nested loops?
- Freaky way of allocating two-dimensional array?
- This source code is switching on a string in C. How does it do that?
- Understanding container_of macro in the Linux kernel
- PTHREAD_MUTEX_INITIALIZER vs pthread_mutex_init ( &mutex, param)
- Is gcc C compiler written in C itself?
- Results of printf() and system() are in the wrong order when output is redirected to a file [duplicate]
- C Programming: malloc() inside another function
- Recursive mkdir() system call on Unix
- Multiple definition of … linker error
- Hiding members in a C struct
- Perceptron learning algorithm not converging to 0
- Is main() overloaded in C++?
- How does one encode a series of images into H264 using the x264 C API?
- How to detect LLVM and its version through #define directives?
- How does the C preprocessor handle circular dependencies?
- In a C function declaration, what does “…” as the last parameter do?
- C: pointer to struct in the struct definition
- Warning: comparison with string literals results in unspecified behaviour
- C struct initialization using labels. It works, but how?
- Efficient floating-point division with constant integer divisors
- Location of C standard library
- Why does sizeof(x)++ compile? [duplicate]
- Null termination of char array
- Is ((void*)0) a null pointer constant?
- 32 bit unsigned multiply on 64 bit causing undefined behavior?
- What is the reason function names are prefixed with an underscore by the compiler?
- Does malloc() allocate a contiguous block of memory?
- How can we know the caller function’s name?
- How to install gtk development dependencies on Ubuntu?
- Why is the ‘auto’ keyword useful for compiler writers in C?