diff options
author | Steven Wu <stevenwu@apple.com> | 2017-01-23 20:07:55 +0000 |
---|---|---|
committer | Steven Wu <stevenwu@apple.com> | 2017-01-23 20:07:55 +0000 |
commit | 5b54a42c0f1178dbb367866f92cd4efe88710bd6 (patch) | |
tree | 55464f3be2aa42cdf522652eb39e7969d85a5c24 /llvm/test/MC/MachO/darwin-version-min-load-command.s | |
parent | cddeb751a11ce5771bedaa36f04775fb0aa56212 (diff) | |
download | bcm5719-llvm-5b54a42c0f1178dbb367866f92cd4efe88710bd6.tar.gz bcm5719-llvm-5b54a42c0f1178dbb367866f92cd4efe88710bd6.zip |
Add LC_BUILD_VERSION load command
Summary:
Add a new load command LC_BUILD_VERSION. It is a generic version of
LC_*_VERSION_MIN load_command used on Apple platforms. Instead of having
a seperate load command for each platform, LC_BUILD_VERSION is recording
platform info as an enum. It also records SDK version, min_os, and tools
that used to build the binary.
rdar://problem/29781291
Reviewers: enderby
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D29044
llvm-svn: 292824
Diffstat (limited to 'llvm/test/MC/MachO/darwin-version-min-load-command.s')
-rw-r--r-- | llvm/test/MC/MachO/darwin-version-min-load-command.s | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/MC/MachO/darwin-version-min-load-command.s b/llvm/test/MC/MachO/darwin-version-min-load-command.s index 17f3784d632..7fd4daa40a0 100644 --- a/llvm/test/MC/MachO/darwin-version-min-load-command.s +++ b/llvm/test/MC/MachO/darwin-version-min-load-command.s @@ -26,3 +26,10 @@ // CHECK-TVOS: cmd LC_VERSION_MIN_TVOS // CHECK-TVOS-NEXT: cmdsize 16 // CHECK-TVOS-NEXT: version 8.0 + +// CHECK-BRIDGEOS: cmd LC_BUILD_VERSION +// CHECK-BRIDGEOS-NEXT: cmdsize 24 +// CHECK-BRIDGEOS-NEXT: platform bridgeos +// CHECK-BRIDGEOS-NEXT: sdk n/a +// CHECK-BRIDGEOS-NEXT: minos 2.0 +// CHECK-BRIDGEOS-NEXT: ntools 0 |