redsocks on android emulator: getting error "not executable: magic 7F45"
What file(1) utility says about your compiled binary?

Because compiling on x86-based PC does not promises your binary always will have x86 target platform - GCC can produce virtually any targets.