83e9bd72ea
Adds the following command line options to gen_snapshot: * --macho-install-name: The name to use as the install name for the dynamic library (used in the LC_ID_DYLIB and LC_CODE_SIGNATURE load commands). If not provided, the output filename is used. * --[no-]macho-linker-signature: Whether or not gen_snapshot should generate an ad-hoc linker-signed signature. Defaults to true. The following command line option is macOS/iOS-specific: * --macho-rpath: Comma-delimited run paths that should be added at runtime to the current run path used for finding @rpath-prefixed dynamic libraries. Adds support to parsing rpath and dylib load commands to pkg/native_stack_traces's Mach-O parser in order to test the command line options appropriately. TEST=vm/dart/use_macho_options Issue: https://github.com/dart-lang/sdk/issues/60307 Change-Id: I17618578a7bff7851a88cdaf27f299f058f98dd3 Cq-Include-Trybots: luci.dart.try:vm-aot-mac-debug-x64-try,vm-aot-mac-debug-arm64-try,vm-aot-linux-debug-arm64-try,vm-aot-linux-debug-x64-try,pkg-mac-release-try,pkg-mac-release-arm64-try,pkg-linux-release-arm64-try,vm-aot-win-release-arm64-try,vm-aot-win-debug-x64-try Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/441920 Reviewed-by: Ryan Macnak <rmacnak@google.com> Commit-Queue: Tess Strickland <sstrickl@google.com>