[lld-macho][reland] Add support for emitting dylibs with a single symbol
authorJez Ng <jezng@fb.com>
Tue, 28 Apr 2020 23:58:22 +0000 (16:58 -0700)
committerShoaib Meenai <smeenai@fb.com>
Wed, 29 Apr 2020 00:08:32 +0000 (17:08 -0700)
commit62b8f32f7699807ec61c81e2ffceae584a7e6219
tree8723484f04ec786ae8e0b0255fd9d90e34b91f17
parent4f0cccdd7a06ff60d3271638f47082b65f3793f1
[lld-macho][reland] Add support for emitting dylibs with a single symbol

This got reverted due to UBSAN errors in a diff lower in the stack,
which is being fixed in https://reviews.llvm.org/D79050. This diff is
otherwise identical to the original https://reviews.llvm.org/D76908
(which was committed in 9598778bd191 and reverted in b52bc2653bbc).

Differential Revision: https://reviews.llvm.org/D79051
14 files changed:
lld/MachO/Config.h
lld/MachO/Driver.cpp
lld/MachO/Options.td
lld/MachO/SyntheticSections.cpp
lld/MachO/SyntheticSections.h
lld/MachO/Writer.cpp
lld/test/MachO/Inputs/goodbye-dylib.yaml [deleted file]
lld/test/MachO/Inputs/hello-dylib.yaml [deleted file]
lld/test/MachO/Inputs/libgoodbye.s [new file with mode: 0644]
lld/test/MachO/Inputs/libhello.s [new file with mode: 0644]
lld/test/MachO/dylib.s [new file with mode: 0644]
lld/test/MachO/dylink.s
lld/test/MachO/load-commands.s
lld/test/MachO/symtab.s