I'm trying to build Hello World in x64 assembly on my Leopard MacBook Pro. It assembles fine, but I get this error when I try to link it: ld: symbol dyld_stub_binding_helper not defined (usually in crt1.o/dylib1.o/bundle1.o) for inferred architecture x86_64
I loaded it with ld -o hello64 hello64.o -lc
My assembler is Yasm.
EDIT: As far as I can tell, unlike for 32-bit code, you have to supply the stub helper yourself, and since I don't know how the 64-bit stub helper works I'll do as Bastien said and have GCC link it since it includes it's own stub helper.