This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
incomplete symtabs via dl_iterate_phdr?
- From: Thomas KÃhne <thomas at kuehne dot cn>
- To: binutils at sourceware dot org
- Date: Tue, 02 Jan 2007 16:54:59 +0100
- Subject: incomplete symtabs via dl_iterate_phdr?
I am trying to find all global symbols of a programm at runtime
from within that very programm. If I use dl_iterate_phdr
and search the DT_SYMTAB sections the result is incomplete.
source:
http://svn.dsource.org/projects/flectioned/trunk/elf2.c
That way only 55 symbols are found in libc while
"nm --extern-only --defined-only libc.a" returns 2455 symbols.
Is there any way to get a list of all defined symbols, their names
and addresses at runtime?
Thomas