I thought so too. ldd <filename> reveal few libraries not found. Then I copy
the missing library into the board and issue ldd again. This is what I get.
libstdc++.so.5 => /lib/libstdc++.so.5 (0x00000000)
libm.so.6 => /lib/libm.so.6 (0x00000000)
libgcc_s.so1 => /lib/libgcc_s.so.1 (0x0000000)
libc.so.6 => /lib/libc.so.6 (0x00000000)
libc.so.0 => /lib/libc.so.0 (0x00000000)
/lib/ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x00000000)
--- In Jim Jackson wrote:
>
>
>
>
> On Fri, 1 Feb 2013, overclocker_mmu wrote:
>
> > Hello,
> >
> > Simple 'hello world' fail to execute on my board. It says "No such file
> > or directory'. The binary was cross compiled using tools provided by TS.
> >
> > But the binary will be executed if I issue -static during compilation.
>
> I think this is the clue - it seems that one of the shared libraries you
> link to your program is missing on the board.
>
> >
> > Someone before me might have done something to the package/tools inside
> > the board that I've got.
> >
> > The binary seems just fine.
> >
> > file hello
> >
> > hello: ELF 32-bit LSB executable, ARM, version 1, dynamically linked
> > (uses shared libs), for GNU/Linux 2.4.3, not stripped
> >
> > Thank you for any insight.
> >
> >
>
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|