link: handle -u flag in all linkers

Also clean up parsing of linker args - reuse `ArgsIterator`.

In MachO, ensure we add every symbol marked with `-u` as undefined
before proceeding with symbol resolution. Additionally, ensure those
symbols are never garbage collected.

MachO entry_in_dylib test: pass `-u _my_main` when linking executable
so that it is not incorrectly garbage collected by the linker.
a88c0b4d08Jakub Konka committed on 4/1/2023, 12:22:44 PMparent2dd1784
12 files changedLine totals unavailable