Grant Jacobs wrote:
Thanks for that. I vaguely recalled you writing something about some options to do with prebinding but I couldn't find any message with 'prebind' in my archive of gpc posts. Is this documented somewhere btw? Its not in gpc's PDF help file.
Apple's "Fred Flintstone" Mach-O Runtime architecture is discussed at <http://developer.apple.com/documentation/DeveloperTools/Conceptual/ MachORuntime/>. The "Bam Bam" linker is documented in the ld man pages - type "man ld" on the terminal command line.
/usr/bin/ld: /usr/lib/crt1.o can't create relocation entry for prebinding (address of section (__DATA,__la_symbol_ptr) more than 24-bits away from first segment, use -noprebind)
From the ld man pages (prebinding is the default for executables):
-prebind Have the static linker, ld(1), prebind an executable's or dynamic shared library's undefined symbols to the addresses of the dynamic libraries it is being linked with. This optimiza- tion can only be done if the libraries don't overlap and no sym- bols are overridden.
So, maybe the 24-bits message is msleading and there is a symbol naming conflict instead (just a wild guess).
Regards,
Adriaan van Os