crosstool - ARM922T - NMS9200
Trilok Soni
trilok_ulug@yahoo.co.in
Sun Jan 11 19:50:00 GMT 2004
Hi,
> OK, let's see where libc.so is, and what's in it.
> On the target board, what do the commands
> # ls -l /lib/libc[-.]*
libc-2.2.5.so
libc.so.6->libc-2.2.5.so
> # cat /lib/libc.so
/* GNU ld script
Use the shared library, but some functions are only
in
the static library, so try that secondarily. */
GROUP ( libc.so.6 libc_nonshared.a )
/ #
> # ldd ./hello
ldd is not availbale on target. But I can give readelf
output:
#arm-linux-readelf -a hello | grep "Shared"
0x00000001 (NEEDED) Shared Library: [ libc.so.6 ]
#arm-linux-readelf -a hello | grep "ld-linux.so.2"
[Requesting program interpreter : /lib/ld-linux.so.2]
> say? Also, if you compile strace statically, what
> does
> # strace ./hello
> say? (You can get strace from
test # strace ./hello.shared
execve("./hello.shared", ["./hello.shared"], [/* 5
vars */]) = 0
uname({sys="Linux", node="(none)", ...}) = 0
brk(0) = 0x1060c
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT
(No such file or directory)
--- SIGILL (Illegal instruction) @ 0 (0) ---
+++ killed by SIGIL
---
Why it is opening ld.so.preload - I think related with
security concern..Do I have make one...?
I don't have ld.so.preload on my target. But I don't
understand it's requirement.
Just write back if u need more information. I need to
solve this problem. Because my C++ library problem is
hanging and depends upon the solution of above
problem.
Regards
Trilok Soni
--- Dan Kegel <dank@kegel.com> wrote: > Trilok Soni
wrote:
> > I have built arm-linux toolchain using
> crosstool-0.25
> > version from kegel.com.
> >
> > script executed for:
> > arm.dat gcc-3.2.3-glibc-2.2.5
> >
> > Board:
> > NMS9200 - MiMagic5
> >
> > I have then built ramdisk for my target board
> nms9200.
> > I have copied following files on
> > ramdisk/lib.
> >
> > # ls $ARM_ROOT/ramdisk/lib
> > ld-2.2.5.so libgcc_s.so libstdc++.so ...
> >
> > Now when I execute simple Hello, World "c" shared
> > library program, it just comeback to shell
> > without printing a "hello, world" message.
> > ...
> > I think it is able to find loader..but loader is
> > unable to load libc.so to memory. Do u think that
> > I have to copy library somewhere else?
>
________________________________________________________________________
Yahoo! India Mobile: Download the latest polyphonic ringtones.
Go to http://in.mobile.yahoo.com
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list