dl_iterate_phdr missing in libc
carmelo.amoroso at st.com
Fri Jan 11 13:14:47 UTC 2008
I'm facing a problem when statically linking an app with
caused by the missing symbol dl_iterate_phdr as below:
sh4-linux-uclibc-g++ -static main.c
In function `_Unwind_Find_FDE':
undefined reference to `dl_iterate_phdr'
Indeed the symbols is defined into the ld.so (not used when statically
linked) and into libdl.a
but, being libgcc_eh.a requiring this symbol, it will not find it even
if -ldl is passed.
I've checked glibc and found that dl_iterate_phdr in into libc instead
od ld.so and libdl.a
A comment in uclibc dl-elf.c says explicitly:
"we want this in ld.so and libdl.a but nowhere else"
Could someone explain this to me ? I need to fix immediately into
adding the symbol into the libc too, as it is required by an our
customer on production,
but I'd like to have a common fix also for the trunk.
More information about the uClibc