I faced a lot of problem with android linker while i was porting my c+
+ application. I found it is impossible to port it with the libc of
android. So here
i explained the way i ported my application to android and it was
successful. What is not clear for u. Have u tried this way.
> > system/lib/ld-linux.so.3 (...DO NOT USE -static let it link
> > dynamically )
> > Just check the hello.out to findout the dependencies.
> > I just guessed(because i dont have ldd in my cywin) that it needs
> > ld-linux.so.3,
> > libgcc_s.so,
> > libc.so.6
> > I took these files from toolchain library (libc/usr/lib) and pushed
> > into the emulator directory /system/lib
> > Now push the hello.out to the emulator and give the permission to
> > execute (chmod) and u can see ur output
> > without static linking.
> > So every program whether it is DSO or any thing , if it is created
> > successfully with the toolchiain in
> > ur host system it can be executed in the emulator. U have to only push
> > the needed dynamic shared libraries
> > into the emulator system library and whenever u r linking dynamically
> > use the option " -Wl,-dynamic-linker=/system/lib/ld-linux.so.3 "