it definitely looks like there is something wrong with your toolchain. the libgcc runtime functions should be prefixed with __aeabi_ and not __armeabi_ the corresponding implementations are located in the linker executable itself (/system/bin/linker) and get resolved at runtime normally. some of them come from libgcc, and others from the C library itself (which is statically compiled into the linker)
as for the static libc, you cannot use it in shared libraries. even if there wasn't relocation issues, this would break many things, (e.g. pthread initialization). On Thu, Mar 27, 2008 at 5:26 PM, David Given <[EMAIL PROTECTED]> wrote: > Joe Onorato wrote: > > Ahh, I see. It's not not finding the JNI functions, it's not able to > > resolve some other symbol in the library. What happens if you compile > the > > .so with --error-unresolved-symbols? > > I don't have the toolchain with me right now, so I can't try it. I > would, however, not expect it to tell me anything particularly useful > --- the linker can't distinguish between symbols that are resolvable at > runtime and which ones aren't. (I've actually been using a system using > nm and grep to list all unresolved symbols in the library, to try and > figure out which ones are causing the problems.) > > digit wrote: > > can I ask you to list the missing functions that you need ? especially > the C > > library ones. > > I don't know for sure. I can only enable or disable blocks of code and > see what works and what doesn't. Given Google's comments on the use of > the C library, I'm not really expecting to be able to use many libc > functions. However, I am seeing problems with the C runtime --- the > compiler generates references to helper functions with names beginning > with __armeabi for doing things like float emulation, and at least some > of these appear to be missing. > > Normally I'd just statically link them and not worry about it, but my > CodeSourcery toolchain doesn't appear to have a static libgcc; I'll have > to hunt around to see if I can find a copy elsewhere. (*And* its static > libc contains fixup types that can't be put into shared libraries. > Grumble.) > > -- > ┌─── dg@cowlark.com ───── http://www.cowlark.com ───── > │ "I have always wished for my computer to be as easy to use as my > │ telephone; my wish has come true because I can no longer figure out > │ how to use my telephone." --- Bjarne Stroustrup > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

