linux-mips
[Top] [All Lists]

Re: Ask help:why my 64-bit ELF file could not run at the 64-bit mips

To: Alexander Clouter <alex@digriz.org.uk>, Jan Rovins <janr@adax.com>, geert@linux-m68k.org
Subject: Re: Ask help:why my 64-bit ELF file could not run at the 64-bit mips cpu
From: Dominic <dominicwj@gmail.com>
Date: Mon, 26 Apr 2010 20:00:51 +0800
Cc: linux-mips@linux-mips.org
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=OprkUIdpGXVj/LWoT8hEHruiI5xdaQRCUUAutyscCEA=; b=BiPTgTRHxOo1grIje5He7qWKosCfTKECb8gcSExcZXPRbnFBOV22a+6bQX6l3DR4gR Ht9NwDKN4stsart3l/Ytcq5chgZViKyOzwBFJod4oRK7vPmsAT4nMHWkcT4VeDJ7k9Hi vJfS98bg6s9FZ3ts8GDdBBSZO+/lrtw5/uvSM=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=Q9CnTF5g3n+X5NLUGTUjIGaHbyICy1RVLRT1kcK97QwFe4yygFZqnLGk6SGOLGiiyh 4JR9bSt2SZhtR7XIKc3sEIiNil11f3S9U6y48lUdU4K9Zu5mJoQGMHOfsLDwJTD4WZQm UbuJL83danQCPHou11mAGWz7XAXKwaiEydZFI=
In-reply-to: <v568a7-oj5.ln1@chipmunk.wormnet.eu>
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> <v568a7-oj5.ln1@chipmunk.wormnet.eu>
Sender: linux-mips-bounce@linux-mips.org
Hi Alexander, Jan & Greet

Much thanks for your advice, I have solve this problem, thanks a lot!

BR/Dominic

On Fri, Apr 23, 2010 at 5:34 PM, Alexander Clouter <alex@digriz.org.uk> wrote:
> 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>