The lazy binding is really interesting. There is lots of interesting stuff in the kernel, dyld, and libSystem. I would encourage you to have a look! You can do interesting things like run code before libSystem_init[1]
[0]:
https://github.com/Apple-FOSS-Mirror/dyld/tree/master/src
https://github.com/Apple-FOSS-Mirror/Libsystem/blob/master/i...
https://github.com/Apple-FOSS-Mirror/xnu/blob/master/bsd/ker...
[1]: https://gist.github.com/jevinskie/4615901
https://twitter.com/kernelpool/status/298714209187921921
The lazy binding is really interesting. There is lots of interesting stuff in the kernel, dyld, and libSystem. I would encourage you to have a look! You can do interesting things like run code before libSystem_init[1]
[0]:
https://github.com/Apple-FOSS-Mirror/dyld/tree/master/src
https://github.com/Apple-FOSS-Mirror/Libsystem/blob/master/i...
https://github.com/Apple-FOSS-Mirror/xnu/blob/master/bsd/ker...
[1]: https://gist.github.com/jevinskie/4615901