List all the functions/symbols on the fly in C code on a Linux architecture?
问题 Assume main.c uses symbols from shared libs and local functions declared in main.c . Is there a nice and elegant way to print a list of all the available function names and symbols at run time? It should be possible since the data is loaded to the .code segment. 回答1: Since I had the same need to retrieve all loaded symbol names at runtime, I did some research based upon R..'s answer. So here is a detailed solution for linux shared libraries in ELF format which works with my gcc 4.3.4, but