diff options
| author | Adrian Prantl <aprantl@apple.com> | 2019-08-23 21:28:14 +0000 |
|---|---|---|
| committer | Adrian Prantl <aprantl@apple.com> | 2019-08-23 21:28:14 +0000 |
| commit | f869ec8d4981afb18356d98a6b27c85d4e2affe3 (patch) | |
| tree | a3305abd96a266e04957b34e25225be0426ec63d /lldb/lit/Modules | |
| parent | f7ca57468a6bbdc55e4183e492404aee0d000a8c (diff) | |
| download | bcm5719-llvm-f869ec8d4981afb18356d98a6b27c85d4e2affe3.tar.gz bcm5719-llvm-f869ec8d4981afb18356d98a6b27c85d4e2affe3.zip | |
Upstream support for macCatalyst Mach-O binaries.
On macOS one Mach-O slice can contain multiple load commands: One load
command for being loaded into a macOS process and one load command for
being loaded into a macCatalyst process. This patch adds support for
the new load command and makes sure ObjectFileMachO returns the
Architecture that matches the Module.
Differential Revision: https://reviews.llvm.org/D66626
llvm-svn: 369814
Diffstat (limited to 'lldb/lit/Modules')
| -rw-r--r-- | lldb/lit/Modules/MachO/lc_build_version.yaml | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/lldb/lit/Modules/MachO/lc_build_version.yaml b/lldb/lit/Modules/MachO/lc_build_version.yaml index 4479662627f..763525c6e5b 100644 --- a/lldb/lit/Modules/MachO/lc_build_version.yaml +++ b/lldb/lit/Modules/MachO/lc_build_version.yaml @@ -2,14 +2,15 @@ # RUN: lldb-test symbols %t.out | FileCheck %s # Test that the deployment target is parsed from the load commands. # CHECK: x86_64-apple-macosx10.14.0 +# CHECK: x86_64-apple-ios12.0.0-macabi --- !mach-o FileHeader: magic: 0xFEEDFACF cputype: 0x01000007 cpusubtype: 0x80000003 filetype: 0x00000002 - ncmds: 14 - sizeofcmds: 744 + ncmds: 15 + sizeofcmds: 776 flags: 0x00200085 reserved: 0x00000000 LoadCommands: @@ -150,6 +151,15 @@ LoadCommands: cmdsize: 16 dataoff: 4152 datasize: 0 + - cmd: LC_BUILD_VERSION + cmdsize: 32 + platform: 6 + minos: 786432 + sdk: 786432 + ntools: 1 + Tools: + - tool: 3 + version: 26738944 LinkEditData: ExportTrie: TerminalSize: 0 |

