[lld][MachO] Add first bits to support special symbols
authorAlexander Shaposhnikov <alexshap@fb.com>
Sat, 5 Jun 2021 06:31:40 +0000 (23:31 -0700)
committerAlexander Shaposhnikov <alexshap@fb.com>
Sat, 5 Jun 2021 06:32:26 +0000 (23:32 -0700)
commit1309c181a85233c80051544f43008963c3d5fe71
treec606d19ea530c916da7a817b37d7b22347911ae4
parent5b0e50550c0b01d76754eb9a4affe2d1a2505bbc
[lld][MachO] Add first bits to support special symbols

This diff adds first bits to support special symbols $ld$previous* in LLD.
$ld$* symbols modify properties/behavior of the library
(e.g. its install name, compatibility version or hide/add symbols)
for specific target versions.

Test plan: make check-lld-macho

Differential revision: https://reviews.llvm.org/D103505
lld/MachO/Config.h
lld/MachO/InputFiles.cpp
lld/MachO/InputFiles.h
lld/MachO/Writer.cpp
lld/test/MachO/special-symbol-ld-previous.s [new file with mode: 0644]