All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexander Clouter <alex@digriz.org.uk>
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
Date: Fri, 23 Apr 2010 10:34:23 +0100	[thread overview]
Message-ID: <v568a7-oj5.ln1@chipmunk.wormnet.eu> (raw)
In-Reply-To: h2hdf5e30c51004230142q21184429pffcaa9351510bc2d@mail.gmail.com

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

  parent reply	other threads:[~2010-04-23 10:08 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <j2sdf5e30c51004172251z9fd01867h562b99c1f1044c26@mail.gmail.com>
2010-04-22 15:31 ` Ask help:why my 64-bit ELF file could not run at the 64-bit mips cpu Jian Wang
2010-04-22 15:31   ` Jian Wang
2010-04-22 16:01 ` Jian Wang
2010-04-22 17:11   ` Jan Rovins
2010-04-23  8:42     ` Dominic
2010-04-23  8:42       ` Dominic
2010-04-23  9:26       ` Geert Uytterhoeven
2010-04-23  9:26         ` Geert Uytterhoeven
2010-04-23  9:34       ` Alexander Clouter [this message]
2010-04-26 12:00         ` Dominic
2010-04-26 12:00           ` Dominic
2010-05-24 13:13     ` Dominic
2010-05-24 13:13       ` Dominic

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=v568a7-oj5.ln1@chipmunk.wormnet.eu \
    --to=alex@digriz.org.uk \
    --cc=linux-mips@linux-mips.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.