Implement -bundle_loader
authorVy Nguyen <vyng@google.com>
Wed, 3 Feb 2021 02:23:22 +0000 (21:23 -0500)
committerVy Nguyen <vyng@google.com>
Thu, 18 Feb 2021 21:11:37 +0000 (16:11 -0500)
commit1a0afcf518717f61d45a1cdc6ad1a6436ec663b1
tree62c10a831327bc732394e00de733f91f9693129b
parent4544a63b77056212af341722b2e04471a8ec0be6
Implement -bundle_loader

Differential Revision: https://reviews.llvm.org/D95913

Usage: -bundle_loader <executable>
This option specifies the executable that will load the build output file being linked.
When building a bundle, users can use the --bundle_loader  to specify an executable
that contains symbols referenced, but not implemented in the bundle.
lld/MachO/Driver.cpp
lld/MachO/Driver.h
lld/MachO/DriverUtils.cpp
lld/MachO/InputFiles.cpp
lld/MachO/InputFiles.h
lld/MachO/Options.td
lld/MachO/SyntheticSections.cpp
lld/MachO/Writer.cpp
lld/test/MachO/bundle-loader.s [new file with mode: 0644]