I am running OS X version 10.11.6. I get the following error when linking the example.
$ ld -arch x86_64 -macosx_version_min 10.6 -o hello64 hello64_m.o /usr/lib/crt1.o /usr/lib/libc.dylib
ld: illegal text-relocation to '.data' in hello64_m.o from '_main' in hello64_m.o for architecture x86_64
I am running OS X version 10.11.6. I get the following error when linking the example.
$ ld -arch x86_64 -macosx_version_min 10.6 -o hello64 hello64_m.o /usr/lib/crt1.o /usr/lib/libc.dylib
ld: illegal text-relocation to '.data' in hello64_m.o from '_main' in hello64_m.o for architecture x86_64