I want to build a static hello world from C using arm-linux-gnueabi-gcc as opposed to using the NDK standalone toolchain or Codesourcery for that matter.
In Ubuntu..
Your code actually works for me.
I compiled it on Ubuntu and push it to /data/local/tmp
And then chmod 777 hi
Finally it works well.