Assume main.c uses symbols from shared libs and local functions declared in main.c.
main.c
Is there a nice and elegant way to print a list of all
It should be dl_iterate_phdr(retrieve_symbolnames, &symbolNames);
dl_iterate_phdr(retrieve_symbolnames, &symbolNames);