1 # RUN: lld -flavor darwin -arch i386 -r -print_atoms %s -o %t | FileCheck %s
3 # Test parsing of literal sections.
9 flags: [ MH_SUBSECTIONS_VIA_SYMBOLS ]
16 attributes: [ S_ATTR_PURE_INSTRUCTIONS, S_ATTR_SOME_INSTRUCTIONS ]
17 address: 0x0000000000000000
18 content: [ 0x55, 0x89, 0xE5, 0x5D, 0xC3, 0x55, 0x89, 0xE5,
19 0x5D, 0xC3, 0x55, 0x89, 0xE5, 0x5D, 0xC3 ]
21 section: __mod_init_func
22 type: S_MOD_INIT_FUNC_POINTERS
25 address: 0x0000000000000044
26 content: [ 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00 ]
29 type: GENERIC_RELOC_VANILLA
35 type: GENERIC_RELOC_VANILLA
41 section: __mod_term_func
42 type: S_MOD_TERM_FUNC_POINTERS
45 address: 0x0000000000000104
46 content: [ 0x0A, 0x00, 0x00, 0x00 ]
52 value: 0x0000000000000000
57 value: 0x0000000000000005
62 value: 0x000000000000000A
66 # CHECK:defined-atoms:
67 # CHECK: - type: initializer-pointer
68 # CHECK: content: [ 00, 00, 00, 00 ]
69 # CHECK: dead-strip: never
70 # CHECK: - type: initializer-pointer
71 # CHECK: content: [ 05, 00, 00, 00 ]
72 # CHECK: dead-strip: never
73 # CHECK: - type: terminator-pointer
74 # CHECK: content: [ 0A, 00, 00, 00 ]
75 # CHECK: dead-strip: never
76 # CHECK: - name: _init
77 # CHECK: scope: global
78 # CHECK: content: [ 55, 89, E5, 5D, C3 ]
79 # CHECK: - name: _init2
80 # CHECK: scope: global
81 # CHECK: content: [ 55, 89, E5, 5D, C3 ]
82 # CHECK: - name: _term
83 # CHECK: scope: global
84 # CHECK: content: [ 55, 89, E5, 5D, C3 ]