[lld-macho] Support LC_ENCRYPTION_INFO
authorJez Ng <jezng@fb.com>
Wed, 21 Apr 2021 17:35:12 +0000 (13:35 -0400)
committerJez Ng <jezng@fb.com>
Wed, 21 Apr 2021 17:39:56 +0000 (13:39 -0400)
commitab9c21bbab38cd8e3abdc2226a02d67b3327207c
treea2a0b524fa97653b13a3af68512f1ea80d8b79fb
parent079884225a5571f4caf1a9c71b6748db8192e383
[lld-macho] Support LC_ENCRYPTION_INFO

This load command records a range spanning from the end of the load
commands to the end of the `__TEXT` segment. Presumably the kernel will encrypt
all this data.

Reviewed By: #lld-macho, thakis

Differential Revision: https://reviews.llvm.org/D100973
lld/MachO/Config.h
lld/MachO/Driver.cpp
lld/MachO/Options.td
lld/MachO/SyntheticSections.cpp
lld/MachO/Target.h
lld/MachO/Writer.cpp
lld/test/MachO/encryption-info.s [new file with mode: 0644]