1 # RUN: lld -flavor darwin -arch i386 -r -print_atoms %s -o %t | FileCheck %s
3 # Test parsing of old __eh_frame (dwarf unwind) section that has .eh labels
10 flags: [ MH_SUBSECTIONS_VIA_SYMBOLS ]
16 attributes: [ S_ATTR_PURE_INSTRUCTIONS, S_ATTR_SOME_INSTRUCTIONS ]
17 address: 0x0000000000000000
18 content: [ 0x55, 0x89, 0xE5, 0x56, 0x83, 0xEC, 0x14, 0xE8,
19 0x00, 0x00, 0x00, 0x00, 0x5E, 0xC7, 0x04, 0x24,
20 0x04, 0x00, 0x00, 0x00, 0xE8, 0xE7, 0xFF, 0xFF,
21 0xFF, 0xC7, 0x00, 0x0A, 0x00, 0x00, 0x00, 0x8B,
22 0x8E, 0x38, 0x00, 0x00, 0x00, 0x89, 0x4C, 0x24,
23 0x04, 0x89, 0x04, 0x24, 0xC7, 0x44, 0x24, 0x08,
24 0x00, 0x00, 0x00, 0x00, 0xE8, 0xC7, 0xFF, 0xFF,
25 0xFF, 0x55, 0x89, 0xE5, 0x83, 0xEC, 0x08, 0xE8,
26 0xBC, 0xFF, 0xFF, 0xFF ]
29 type: GENERIC_RELOC_VANILLA
35 type: GENERIC_RELOC_VANILLA
42 type: GENERIC_RELOC_LOCAL_SECTDIFF
48 type: GENERIC_RELOC_PAIR
53 type: GENERIC_RELOC_VANILLA
60 type: S_NON_LAZY_SYMBOL_POINTERS
62 address: 0x0000000000000044
63 content: [ 0x00, 0x00, 0x00, 0x00 ]
70 address: 0x0000000000000048
71 content: [ 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
72 0x01, 0x7A, 0x52, 0x00, 0x01, 0x7C, 0x08, 0x01,
73 0x10, 0x0C, 0x05, 0x04, 0x88, 0x01, 0x00, 0x00,
74 0x18, 0x00, 0x00, 0x00, 0x1C, 0x00, 0x00, 0x00,
75 0x98, 0xFF, 0xFF, 0xFF, 0x39, 0x00, 0x00, 0x00,
76 0x00, 0x41, 0x0E, 0x08, 0x84, 0x02, 0x42, 0x0D,
77 0x04, 0x44, 0x86, 0x03, 0x18, 0x00, 0x00, 0x00,
78 0x38, 0x00, 0x00, 0x00, 0xB5, 0xFF, 0xFF, 0xFF,
79 0x0B, 0x00, 0x00, 0x00, 0x00, 0x41, 0x0E, 0x08,
80 0x84, 0x02, 0x42, 0x0D, 0x04, 0x00, 0x00, 0x00 ]
84 type: GENERIC_RELOC_LOCAL_SECTDIFF
90 type: GENERIC_RELOC_PAIR
96 type: GENERIC_RELOC_SECTDIFF
102 type: GENERIC_RELOC_PAIR
108 type: GENERIC_RELOC_LOCAL_SECTDIFF
114 type: GENERIC_RELOC_PAIR
120 type: GENERIC_RELOC_SECTDIFF
126 type: GENERIC_RELOC_PAIR
134 value: 0x0000000000000048
140 value: 0x0000000000000039
145 value: 0x000000000000007C
150 value: 0x0000000000000000
155 value: 0x0000000000000060
160 value: 0x0000000000000000
161 - name: ___cxa_allocate_exception
164 value: 0x0000000000000000
168 value: 0x0000000000000000
171 # CHECK: defined-atoms:
172 # CHECK: - ref-name: [[CIE:L[L0-9]+]]
173 # CHECK: type: unwind-cfi
175 # CHECK: - type: unwind-cfi
178 # CHECK: - kind: negDelta32
180 # CHECK: target: [[CIE]]
181 # CHECK: - kind: delta32
183 # CHECK: target: __Z3foov
184 # CHECK: - type: unwind-cfi
187 # CHECK: - kind: negDelta32
189 # CHECK: target: [[CIE]]
190 # CHECK: - kind: delta32
192 # CHECK: target: __Z3barv