| To: | linux-mips@linux-mips.org |
|---|---|
| Subject: | Re: Ask help:why my 64-bit ELF file could not run at the 64-bit mips cpu |
| From: | Alexander Clouter <alex@digriz.org.uk> |
| Date: | Fri, 23 Apr 2010 10:34:23 +0100 |
| Connect(): | No such file or directory |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <j2sdf5e30c51004172251z9fd01867h562b99c1f1044c26@mail.gmail.com> <q2odf5e30c51004220901l8bfa979ftc9c6a7b633569460@mail.gmail.com> <4BD08329.80804@adax.com> <h2hdf5e30c51004230142q21184429pffcaa9351510bc2d@mail.gmail.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
| User-agent: | tin/1.9.3-20080506 ("Dalintober") (UNIX) (Linux/2.6.26-2-sparc64-smp (sparc64)) |
Dominic <dominicwj@gmail.com> wrote:
>
> Thanks a lot for your precious reply! I try to use -static to compile
> the program, then the 64-bit program can run, so it should be the
> library related other than 64-bit instruction or addressing related.
> Then I stored the 64-bit libraries in nfs, and mount it on the target
> board, after adding the path to ld.so.conf and 'ldconfig', the program
> compiled without -static still does not run. Shall I miss something?
>
On your host, you can type something like:
----
alex@berk:/usr/src/wag54g$ readelf -d
buildroot/output/target/usr/sbin/ip6tables-multi | grep Shared
0x00000001 (NEEDED) Shared library: [libip6tc.so.0]
0x00000001 (NEEDED) Shared library: [libxtables.so.4]
0x00000001 (NEEDED) Shared library: [libdl.so.0]
0x00000001 (NEEDED) Shared library: [libm.so.0]
0x00000001 (NEEDED) Shared library: [libc.so.0]
----
This will list all the libraries that you need installed[1], I'm guessin
you have missed one.
You can look at the output of 'readelf -a' to try to see what might be
missing.
Cheers
[1] in addition to the interpreter required (for example 'ld-uClibc')
and the main C library being used:
readelf -l buildroot/output/target/usr/sbin/ip6tables-multi
--
Alexander Clouter
.sigmonster says: "Ninety percent of baseball is half mental."
-- Yogi Berra
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Ask help:why my 64-bit ELF file could not run at the 64-bit mips cpu, Geert Uytterhoeven |
|---|---|
| Next by Date: | [PATCH v2 0/4] MIPS performance event support v2, Deng-Cheng Zhu |
| Previous by Thread: | Re: Ask help:why my 64-bit ELF file could not run at the 64-bit mips cpu, Geert Uytterhoeven |
| Next by Thread: | Re: Ask help:why my 64-bit ELF file could not run at the 64-bit mips cpu, Dominic |
| Indexes: | [Date] [Thread] [Top] [All Lists] |