Binary throwing syntax error: `' unexpected

I am trying run a third party application on QNX 6.5.0 ARM target. I succeeded in cross-compiling for Arm target from Linux Host using QNX SDP 6.5.0 .When I tried to run the binary on my Arm board, I am getting the below error "

./MyApp

./Myapp[1]: syntax error: `^AtL^P4$ó^M^B^F4’ unexpected
Process 106521 (sh) exited status=1.

When inspected the binary, I got the below output.
#file MyApp
myApp: ELF 32-bit LSB executable, ARM, version 1, dynamically linked (uses shared libs), not stripped
The target architecture and the binary header doesn’t mismatch. Any help in this matter is well appreciated.

My guess would be one of the following

  1. Your missing a shared library that myApp requires
  2. Your compilation of myApp doesn’t match that of the shared libraries (ie different compiler version, different architecture (LSB/MSB, 32 v 64 bit) etc.
  3. C vs C++ name mangling (is myApp a C or C++ application and if it’s C++ are you specifying C++ at compile time)

You might want to try a statically linking myApp.

Tim

Thank you for your response. Today I found that the error came because of the file corruption happened during the FTP transfer of the binary to the target board.