crosstool - ARM922T - NMS9200
Roman Duka
rduka@mail.ru
Sun Jan 11 17:14:00 GMT 2004
Trilok Soni wrote:
> Hi All,
>
> 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
> ld-2.2.5.so.2 libgcc_s.so.1 libstdc++.so.5
> libBronkenLocale-2.2.5.so libm-2.2.5.so
> libstdc++.so.5.0.4
> libBronkenLocale.so.1 libm.so libthread_db-1.0.so
> libc-2.2.5.so libm.so.6 libthread_db_so.
> libc.so.6 libpthread-0.9.so libthread_db_so.1
> libdl-2.2.5.so libpthread.so.0 libutil-2.2.5.so
> libdl.so libresolv-2.2.5.so libutil.so
> libdl.so.2 librt-2.2.5.so libutil.so.1
>
>
> Now when I execute simple Hello, World "c" shared
> library program, it just comeback to shell
>
> without printing a "hello, world" message.
>
> #include <stdio.h>
>
> int main(int argc, char **argv){
>
> printf("Hello, World\n");
>
> return 0;
> }
>
>
> #arm-linux-gcc -o hello hello.c
>
> --On target board
>
> #./hello
> #
>
> #./hello.static
> Hello,World
> #
>
> 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?
>
> Above program works if I build toolchain with
> buildroot with gcc-3.2.3 and uClibc-0.9.20, but it do
> have C++ problems.
>
> If you need more information please just mention in
> your reply.
>
> Regards,
> Trilok Soni
>
where is your "ld-linux.so.2"???
roman@athlon1000:~> ls -l /lib/ld*
-rwxr-xr-x 1 root root 99756 Mar 23 2002 /lib/ld-2.2.5.so
lrwxrwxrwx 1 root root 11 Aug 7 12:04
/lib/ld-linux.so.2 -> ld-2.2.5.so
roman@athlon1000:~>
under /lib you should have "ld-linux.so.2" which is a sym link to a
dynamic linker/loader, see "man ld.so"
hopefully that should fix the problem
------
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