I guess I misunderstood.
My understanding was: You are running a Yocto Linux on Galileo and you are cross compiling for that Linux and you are trying to run the generated executable "hello" on Galileo.
- if you are cross-compiling for Galileo you will not get a 64 bit executable
- if your are checking "ldd hello" on Galileo you wouldn't see the libs for 64 bit
moreover you should see the libs in /lib/ not in /lib/<arch>/
So I'm honestly slightly puzzled what you are doing and trying to attempt. Could you pls clarify?