This got reverted due to UBSAN errors in a diff lower in the stack,
which is being fixed in D79050: [lld-macho][reland] Add basic symbol table output. This diff is otherwise identical to
the original D76908: [lld-macho] Add support for emitting dylibs with a single symbol.
Depends on D79050.