This adds support to dsymutil for linking remark files and placing them in the final .dSYM bundle.
The result will be placed in:
- a.out.dSYM/Contents/Resources/Remarks/a.out
or
- a.out.dSYM/Contents/Resources/Remarks/a.out-<arch> for universal binaries
When multi-threaded, this runs a third thread which loops over all the object files and parses remarks as it finds __remarks sections.
Testing this involves running dsymutil on pre-built binaries and object files, then running llvm-bcanalyzer on the final result to check for remarks.
I'm not sure if this comment is more helpful than saying "create the Remarks directory in the Resources directory", and below saying "append the file name, possibly followed by a dash and its architecture in case we're dealing with a fat file", or something like that :-)