1 # RUN: ld64.lld -arch x86_64 %s -dylib -o %t %p/Inputs/x86_64/libSystem.yaml
2 # RUN: llvm-nm -m -n %t | FileCheck %s
4 # Test that __mh_dylib_header symbol is available for dylibs
10 flags: [ MH_SUBSECTIONS_VIA_SYMBOLS ]
15 attributes: [ S_ATTR_PURE_INSTRUCTIONS, S_ATTR_SOME_INSTRUCTIONS ]
16 address: 0x0000000000000000
17 content: [ 0x55, 0x48, 0x89, 0xE5, 0x31, 0xC0, 0x5D, 0xC3 ]
23 address: 0x0000000000000008
24 content: [ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 ]
27 type: X86_64_RELOC_UNSIGNED
37 value: 0x0000000000000008
42 value: 0x0000000000000000
44 - name: __mh_dylib_header
47 value: 0x0000000000000000
52 # CHECK_NOT: __mh_dylib_header