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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx> wrote:
> Dominic <dominicwj@xxxxxxxxx> 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
>
>
>


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux