please find my below results:
arm-linux-androideabi-gcc -fPIC -pie -c -o hello.vchong hello.c //cross-compiling
It is cross-compiled, check my output file:
file hello.vchong, It gives below details.
hello.vchong: ELF 32-bit LSB relocatable, ARM, EABI5 version 1 (SYSV), not stripped
then I pushed it to the /data/local/tmp
but while running it is asking permissions i had given by chmod after that it shows below error:
/system/bin/sh: ./hello.vchong: not executable: 32-bit ELF file
With aarch64-linux-android-gcc it is not even cross-compiled.
FYI aarch64-linux-android-gcc bin file is in my source directory only and added in system path IS it enough right?
and didn't install it through apt-get since i didn't package to install.
Please provide me the steps to fix this issue.