问题 This is mostly out of curiosity. I understand that definitions for library functions can be replaced (?) if I LD_PRELOAD my own library with my own definition for the library function. Can I do the same for the main method of an executable? That is, without rebuilding the executable, can I do something to the runtime so that a different main() is called? 回答1: No, you cannot use LD_PRELOAD to override the main function of a binary. LD_PRELOAD A whitespace-separated list of additional, user