gcc-prebind - gcc wrapper to prebind during the linker stage
gcc-prebind cc -fno-exceptions -dynamiclib -install_name \ /usr/lib/libfoo.1.0.6.dylib -o libfoo.1.0.6.dylib objects.o
gcc-prebind is a simple wrapper for GCC that will automatically generate and update a table of segment offsets for prebinding libraries at link time.
It works by taking the command-line input, scanning for the output and/or install filename, and looking it up in a table. If that key exists, it uses the segment address in the table to prebind the library. If it doesn't, it links the library, interrogates it to determine the address size, and then picks a free segment address in the table, and re-links a prebound library.
Benjamin Reed <[email protected]>
gcc(1), ld(1), fix_prebinding(8), redo_prebinding(1), redo_prebinding(3),
update_prebinding(1), dyld(1), dyld(3)