Re: iup // fails to load Linux so

new topic     » goto parent     » topic index » view thread      » older message » newer message
petelomax said...
jimcbrown said...

Try using uname to figure out what arch the shell is using.

Linux xshellz-free 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u2 (2016-10-19) x86_64 GNU/Linux

Yes, I am (intentionally) trying to run a 32-bit binary on a 64-bit system... and yes I've got ld-linux.so.2 hard-coded in the ELF's interpreter section...
[EDIT] I also just tried a 64 bit binary, same deal.
[EDIT2] one more piece of the puzzle:

pete@xshellz-free:~/phix$ ldd ./phix 
        not a dynamic executable 
pete@xshellz-free:~/phix$ ldd ./pth 
        linux-vdso.so.1 (0x00007ffedef6f000) 
        /lib/snoopy.so (0x00007f84222f1000) 
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f8421f46000) 
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f8421d42000) 
        /lib/ld-linux.so.2 => /lib64/ld-linux-x86-64.so.2 (0x00007f84224fd000) 
pete@xshellz-free:~/phix$ 

Ok, if that shell supports 32bit ELF binaries you should have a /lib32/ld-linux.so.2 - I'm suspecting that you don't have it and that the shell does not support 32bit and that this is why you can't run phix and why ldd doesn't recognize phix as a dynamic executable. (ldd works by running the ELF loader in a special mode that just lists the libraries that the binary links to, rather than running any actual code in the binary itself.)

petelomax said...

[EDIT] I also just tried a 64 bit binary, same deal.

This bit doesn't make sense, though. ldd was clearly able to run the 64bit binary well enough to list the libraries.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu