[lld-macho] Add support for -add_empty_section
authorKeith Smiley <keithbsmiley@gmail.com>
Sat, 29 Jan 2022 02:46:51 +0000 (18:46 -0800)
committerKeith Smiley <keithbsmiley@gmail.com>
Sun, 30 Jan 2022 18:03:41 +0000 (10:03 -0800)
commita6298fb160633578f5c4c1e739044274ba8fe520
tree8058e8b58492a709d4c51f207eefaea71f0ed198
parentb7e04ccd996dbaf4f1087e2bec3d37bae03aaa47
[lld-macho] Add support for -add_empty_section

This is a ld64 option equivalent to `-sectcreate seg sect /dev/null`
that's useful for creating sections like the RESTRICT section.

Differential Revision: https://reviews.llvm.org/D117749
lld/MachO/Driver.cpp
lld/MachO/Options.td
lld/test/MachO/sectcreate.s