1 # RUN: lld -flavor darwin -arch i386 -r -print_atoms %s -o %t | FileCheck %s
3 # Test parsing of mach-o functions.
9 flags: [ MH_SUBSECTIONS_VIA_SYMBOLS ]
15 type: S_CSTRING_LITERALS
17 address: 0x0000000000000000
18 content: [ 0x68, 0x65, 0x6C, 0x6C, 0x6F, 0x00, 0x74, 0x68,
19 0x65, 0x72, 0x65, 0x00 ]
25 address: 0x0000000000000010
26 content: [ 0x00, 0x00, 0x00, 0x00, 0xC8, 0x07, 0x00, 0x00,
27 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00,
28 0x00, 0x00, 0x00, 0x00, 0xC8, 0x07, 0x00, 0x00,
29 0x06, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00 ]
32 type: GENERIC_RELOC_VANILLA
38 type: GENERIC_RELOC_VANILLA
44 type: GENERIC_RELOC_VANILLA
50 type: GENERIC_RELOC_VANILLA
56 - name: ___CFConstantStringClassReference
59 value: 0x0000000000000000
62 # CHECK: defined-atoms:
63 # CHECK: - ref-name: [[STR1:L[L0-9]+]]
64 # CHECK: scope: hidden
65 # CHECK: type: c-string
66 # CHECK: content: [ 68, 65, 6C, 6C, 6F, 00 ]
67 # CHECK: merge: by-content
68 # CHECK: - ref-name: [[STR2:L[L0-9]+]]
69 # CHECK: scope: hidden
70 # CHECK: type: c-string
71 # CHECK: content: [ 74, 68, 65, 72, 65, 00 ]
72 # CHECK: merge: by-content
73 # CHECK: - scope: hidden
74 # CHECK: type: cfstring
75 # CHECK: merge: by-content
77 # CHECK: - kind: pointer32
79 # CHECK: target: ___CFConstantStringClassReference
80 # CHECK: - kind: pointer32
82 # CHECK: target: [[STR1]]
83 # CHECK: - scope: hidden
84 # CHECK: type: cfstring
85 # CHECK: merge: by-content
87 # CHECK: - kind: pointer32
89 # CHECK: target: ___CFConstantStringClassReference
90 # CHECK: - kind: pointer32
92 # CHECK: target: [[STR2]]
93 # CHECK:undefined-atoms:
94 # CHECK: - name: ___CFConstantStringClassReference