[lld-macho] Add ARM64 target arch
authorGreg McGary <gkm@fb.com>
Sat, 26 Sep 2020 20:00:22 +0000 (13:00 -0700)
committerGreg McGary <gkm@fb.com>
Tue, 9 Feb 2021 01:14:07 +0000 (18:14 -0700)
commit87104faac4336f14cf5da09a36f18f762778c8ca
tree9bb7374443b751f3044c98d4fed57dd56f067ee3
parent01a48535c31169461d4eedddb48c00b79277f388
[lld-macho] Add ARM64 target arch

This is an initial base commit for ARM64 target arch support. I don't represent that it complete or bug-free, but wish to put it out for review now that some basic things like branch target & load/store address relocs are working.

I can add more tests to this base commit, or add them in follow-up commits.

It is not entirely clear whether I use the "ARM64" (Apple) or "AArch64" (non-Apple) naming convention. Guidance is appreciated.

Differential Revision: https://reviews.llvm.org/D88629
15 files changed:
lld/MachO/Arch/ARM64.cpp [new file with mode: 0644]
lld/MachO/Arch/X86_64.cpp
lld/MachO/CMakeLists.txt
lld/MachO/Driver.cpp
lld/MachO/InputFiles.cpp
lld/MachO/InputSection.cpp
lld/MachO/InputSection.h
lld/MachO/SyntheticSections.cpp
lld/MachO/Target.cpp
lld/MachO/Target.h
lld/MachO/Writer.cpp
lld/test/MachO/Inputs/MacOSX.sdk/usr/lib/libSystem.tbd
lld/test/MachO/Inputs/MacOSX.sdk/usr/lib/libc++.tbd
lld/test/MachO/Inputs/MacOSX.sdk/usr/lib/libc++abi.tbd
lld/test/MachO/x86-64-relocs.s [moved from lld/test/MachO/relocations.s with 100% similarity]