Jakub Konka a88c0b4d08 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.
2023-04-01 14:22:44 +02:00
..
2022-09-14 20:08:34 -04:00
2023-04-01 14:22:44 +02:00
2023-04-01 14:22:44 +02:00
2023-04-01 14:22:44 +02:00
2023-03-05 02:59:02 -05:00
2022-11-04 00:09:27 +03:30
2022-07-28 11:53:25 -07:00
2022-07-28 11:53:25 -07:00
2022-07-28 11:53:25 -07:00
2022-07-28 11:53:25 -07:00