Recommit "rL366894: [yaml2obj] - Allow custom fields for the SHT_UNDEF sections."
[llvm-complete.git] / test / tools / llvm-readobj / macho-needed-libs.test
blobd199327cadba6ac8d16a6b8c8174a63ef23a282b
1 # RUN: yaml2obj %s -o %t.o
2 # RUN: llvm-readobj --needed-libs %t.o | FileCheck %s
4 # CHECK:      NeededLibraries [
5 # CHECK-NEXT:   /usr/lib/libSystem.B.dylib
6 # CHECK-NEXT: ]
8 !mach-o
9 FileHeader:
10   magic:           0xFEEDFACF
11   cputype:         0x01000007
12   cpusubtype:      0x00000003
13   filetype:        0x00000001
14   ncmds:           1
15   sizeofcmds:      56
16   flags:           0x00002000
17   reserved:        0x00000000
18 LoadCommands:
19   - cmd:             LC_LOAD_DYLIB
20     cmdsize:         56
21     dylib:
22       name:            24
23       timestamp:       2
24       current_version: 81985536
25       compatibility_version: 65536
26     PayloadString:   /usr/lib/libSystem.B.dylib