0
I’m running Debian armel in Qemu and trying to run an ARM program but am running into issues:
user@debian-armel:~$ ls -lbat
total 32
drwxr-xr-x 2 user user 4096 Sep 14 23:54 .
-rw------- 1 user user 139 Sep 14 20:41 .bash_history
-rwxrwxrwx 1 user user 7982 Aug 24 22:14 program
-rw-r--r-- 1 user user 220 Dec 9 2013 .bash_logout
-rw-r--r-- 1 user user 3184 Dec 9 2013 .bashrc
-rw-r--r-- 1 user user 675 Dec 9 2013 .profile
drwxr-xr-x 3 root root 4096 Dec 9 2013 ..
user@debian-armel:~$ ./program
-bash: ./program: No such file or directory
user@debian-armel:~$ file program
program: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.26, not stripped
user@debian-armel:~$ getconf LONG_BIT
32
user@debian-armel:~$ uname -ar
Linux debian-armel 2.6.32-5-versatile #1 Wed Sep 25 00:01:55 UTC 2013 armv5tejl GNU/Linux
user@debian-armel:~$ ldd program
not a dynamic executable
Seems like I should be all good to run it, any suggestions?
I think you need to provide some more information about the content of
program
... Have you tried running it specifying the interpreter?python program
.. If that works, maybe the shebang is missing.. ? – AAlvz – 2015-09-15T03:35:57.820I don't think it's a python program, should just be a 32bit ARM ELF, but just in case:
user@debian-armel:~$ python program File "program", line 1 SyntaxError: Non-ASCII character '\x97' in file program on line 2, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details user@debian-armel:~$
What I meant is that you need to know the interpreter that runs your file to be able to run it. Linux needs to recognize what kind of file you have in order to execute it. Check this answer that explains how files are executed. Do you know the interpreter that you need to run
– AAlvz – 2015-09-15T03:56:46.513program
?@AAlvz Dump of the first line of hex:
00000000 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00 |.ELF............| – user2059300 – 2015-09-15T04:56:52.650
“No such file or directory” but it exists – Kamil Maciorowski – 2018-07-31T12:57:53.210