Add logic for emitting the correct set of load commands and segments when -dylib is passed.
I haven't gotten to implementing a real export trie yet, so we can only emit a single symbol, but it's enough to replace the YAML test files introduced in D76252.
Depends on D76742: [lld-macho] Add basic symbol table output.
Does this have to be in the for loop?