title: Running an ELF file on a different ARM linux platform
body: <p>I have an executable file from an embedded device running linux. The device is running on an ARMv5TE Intel PXA255. Since that platform is long obsolete, I would like to run the program on a more modern and cheap Atheros AR9331 running OpenWrt 12.09.
  Following common sense and some info I found on the net, I thought that I could just <code>chmod +X prog1</code> the file and then run it. Unfortunately, doing that does nothing... The program is not recognized: at the prompt, if I write the first characters and press tab nothing happens, if I write the file name and press enter I get <code>/bin/ash: prog1: not found</code>, and of course if I write <code>./prog1</code> I get this error:
  <code>./prog1: line 1: syntax error: unexpected word (expecting ")")</code></p>
  
  <p>more info:</p>
  
  <p>-I verified that the header is 0x7F 'E' 'L' 'F'</p>
  
  <p>-The program seems to decompile correctly on IDA</p>
  
  <p>Am I getting these errors because the platforms are too different?
  What am I doing wrong/what can I do to run this program? I don't have sources.</p>