Adds -static (and -add_load_version)
-static drives will probably drive me (or anyone) insane if it is to be completely and correctly implemented. It seems to touch everything, and I don't even know if everything below is all that it does.
Implemented behavior:
- Entry is defined by LC_UNIXTHREAD command
- LC_BUILD_VERSION and LC_VERSION_MIN_* are no longer emitted by default
- LC_FUNCTION_STARTS is no longer emitted by default
- LC_DATA_IN_CODE is no longer emitted by default
- LC_ENCRYPTION_INFO is no longer emitted by default
- LC_LOAD_DYLINKER is no longer emitted
- Default entry becomes start
- Is not PIC by default.
Will be implemented:
- -image_base effecting the __PAGEZERO and not the __TEXT
Not implemented behavior:
- -arch is not needed
- -platform_version is not needed
- Forcing -keep_dwarf_unwind, even if -no_keep_dwarf_unwind is provided (I don't if they are implemented)
Notes within notes:
- The tests for -static will need fixing if LC_SOURCE_VERSION is added