[lld-macho] Add basic symbol table output
authorJez Ng <jezng@fb.com>
Mon, 27 Apr 2020 20:28:49 +0000 (13:28 -0700)
committerShoaib Meenai <smeenai@fb.com>
Mon, 27 Apr 2020 20:33:15 +0000 (13:33 -0700)
commita3d95a50ee3397c89327fce6983624446cd8e9d7
tree8cb522ad4a799e997760844ec1269c78d9080fc6
parente4872d7f08a1d6f657aaf3bd83b2e3b65fccebd4
[lld-macho] Add basic symbol table output

This diff implements basic support for writing a symbol table.

- Attributes are loosely supported for extern symbols and not at all for
  other types

Immediate future work will involve implementing section merging.

Initial version by Kellie Medlin <kelliem@fb.com>

Differential Revision: https://reviews.llvm.org/D76742
lld/MachO/SyntheticSections.cpp
lld/MachO/SyntheticSections.h
lld/MachO/Writer.cpp
lld/test/MachO/symtab.s [new file with mode: 0644]