ELF binaries and everything before main() starts

How to get started hacking NetBSD