File: arm64-relocs-imports.test

package info (click to toggle)
swiftlang 6.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,519,992 kB
  • sloc: cpp: 9,107,863; ansic: 2,040,022; asm: 1,135,751; python: 296,500; objc: 82,456; f90: 60,502; lisp: 34,951; pascal: 19,946; sh: 18,133; perl: 7,482; ml: 4,937; javascript: 4,117; makefile: 3,840; awk: 3,535; xml: 914; fortran: 619; cs: 573; ruby: 573
file content (296 lines) | stat: -rw-r--r-- 13,060 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
# REQUIRES: aarch64

# RUN: yaml2obj %s -o %t.obj
# RUN: llvm-objdump --no-print-imm-hex -d %t.obj | FileCheck %s --check-prefix BEFORE
# RUN: lld-link /entry:main /subsystem:console /out:%t.exe %t.obj %p/Inputs/library-arm64.lib
# RUN: llvm-objdump --no-print-imm-hex -d %t.exe | FileCheck %s --check-prefix AFTER

# BEFORE: Disassembly of section .text:
# BEFORE-EMPTY:
# BEFORE:        0:       f81f0ffe        str     x30, [sp, #-16]!
# BEFORE:        4:       90000000        adrp    x0, 0x0
# BEFORE:        8:       91000800        add     x0, x0, #2
# BEFORE:        c:       94000000        bl      0xc
# BEFORE:       10:       39400100        ldrb    w0, [x8]
# BEFORE:       14:       79400100        ldrh    w0, [x8]
# BEFORE:       18:       b9400100        ldr     w0, [x8]
# BEFORE:       1c:       f9400100        ldr     x0, [x8]
# BEFORE:       20:       39000100        strb    w0, [x8]
# BEFORE:       24:       79000100        strh    w0, [x8]
# BEFORE:       28:       b9000100        str     w0, [x8]
# BEFORE:       2c:       f9000100        str     x0, [x8]
# BEFORE:       30:       3d400100        ldr     b0, [x8]
# BEFORE:       34:       7d400100        ldr     h0, [x8]
# BEFORE:       38:       bd400100        ldr     s0, [x8]
# BEFORE:       3c:       fd400100        ldr     d0, [x8]
# BEFORE:       40:       3dc00100        ldr     q0, [x8]
# BEFORE:       44:       3d000100        str     b0, [x8]
# BEFORE:       48:       7d000100        str     h0, [x8]
# BEFORE:       4c:       bd000100        str     s0, [x8]
# BEFORE:       50:       fd000100        str     d0, [x8]
# BEFORE:       54:       3d800100        str     q0, [x8]
# BEFORE:       58:       f9400500        ldr     x0, [x8, #8]
# BEFORE:       5c:       b0011a20        adrp    x0, 0x2345000
# BEFORE:       60:       f94ffc00        ldr     x0, [x0, #8184]
# BEFORE:       64:       2a1f03e0        mov      w0, wzr
# BEFORE:       68:       f84107fe        ldr     x30, [sp], #16
# BEFORE:       6c:       d65f03c0        ret
# BEFORE:       70:       00000008        udf #8
# BEFORE:       74:       00000000        udf #0
# BEFORE:       78:       00000001        udf #1
# BEFORE:       7c:       00000001        udf #1
# BEFORE:       80:       91000000        add     x0, x0, #0
# BEFORE:       84:       91400000        add     x0, x0, #0, lsl #12
# BEFORE:       88:       f9400000        ldr     x0, [x0]
# BEFORE:       8c:       00000001        udf #1
# BEFORE:       90:       30091a20        adr x0, 0x123d5
# BEFORE:       94:       54000001        b.ne    0x94
# BEFORE:       98:       36000000        tbz     w0, #0, 0x98
# BEFORE:       9c:       00000001        udf #1
# BEFORE:       a0:       90800002        adrp    x2, 0xffffffff00000000

# AFTER: Disassembly of section .text:
# AFTER-EMPTY:
# AFTER:  140001000:      f81f0ffe        str     x30, [sp, #-16]!
# AFTER:  140001004:      b0000000        adrp    x0, 0x140002000
# AFTER:  140001008:      91001800        add     x0, x0, #6
# AFTER:  14000100c:      94000026        bl      0x1400010a4
# AFTER:  140001010:      39402100        ldrb    w0, [x8, #8]
# AFTER:  140001014:      79401100        ldrh    w0, [x8, #8]
# AFTER:  140001018:      b9400900        ldr     w0, [x8, #8]
# AFTER:  14000101c:      f9400500        ldr     x0, [x8, #8]
# AFTER:  140001020:      39002100        strb    w0, [x8, #8]
# AFTER:  140001024:      79001100        strh    w0, [x8, #8]
# AFTER:  140001028:      b9000900        str     w0, [x8, #8]
# AFTER:  14000102c:      f9000500        str     x0, [x8, #8]
# AFTER:  140001030:      3d404100        ldr     b0, [x8, #16]
# AFTER:  140001034:      7d402100        ldr     h0, [x8, #16]
# AFTER:  140001038:      bd401100        ldr     s0, [x8, #16]
# AFTER:  14000103c:      fd400900        ldr     d0, [x8, #16]
# AFTER:  140001040:      3dc00500        ldr     q0, [x8, #16]
# AFTER:  140001044:      3d004100        str     b0, [x8, #16]
# AFTER:  140001048:      7d002100        str     h0, [x8, #16]
# AFTER:  14000104c:      bd001100        str     s0, [x8, #16]
# AFTER:  140001050:      fd000900        str     d0, [x8, #16]
# AFTER:  140001054:      3d800500        str     q0, [x8, #16]
# AFTER:  140001058:      f9400900        ldr     x0, [x8, #16]
# AFTER:  14000105c:      f0000000        adrp    x0, 0x140004000
# AFTER:  140001060:      f947fc00        ldr     x0, [x0, #4088]
# AFTER:  140001064:      2a1f03e0        mov      w0, wzr
# AFTER:  140001068:      f84107fe        ldr     x30, [sp], #16
# AFTER:  14000106c:      d65f03c0        ret
# AFTER:  140001070:      40002010        <unknown>
# AFTER:  140001074:      00000001        udf #1
# AFTER:  140001078:      00002009        udf #8201
# AFTER:  14000107c:      00000009        udf #9
# AFTER:  140001080:      910e2000        add     x0, x0, #904
# AFTER:  140001084:      91400400        add     x0, x0, #1, lsl #12
# AFTER:  140001088:      f941c400        ldr     x0, [x0, #904]
# AFTER:  14000108c:      00000003        udf #3
# AFTER:  140001090:      300995e0        adr     x0, 0x14001434d
# AFTER:  140001094:      54000081        b.ne    0x1400010a4
# AFTER:  140001098:      36000060        tbz     w0, #0, 0x1400010a4
# AFTER:  14000109c:      ffffff61        <unknown>
# AFTER:  1400010a0:      b0fff802        adrp    x2,  0x13ff02000
# AFTER:  1400010a4:      b0000010        adrp    x16, 0x140002000
# AFTER:  1400010a8:      f9402a10        ldr     x16, [x16, #80]
# AFTER:  1400010ac:      d61f0200        br      x16

--- !COFF
header:
  Machine:         IMAGE_FILE_MACHINE_ARM64
  Characteristics: [  ]
sections:
  - Name:            .text
    Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
    Alignment:       4
    SectionData:     FE0F1FF80000009000080091000000940001403900014079000140B9000140F90001003900010079000100B9000100F90001403D0001407D000140BD000140FD0001C03D0001003D0001007D000100BD000100FD0001803D000540F9201A01B000FC4FF9E0031F2AFE0741F8C0035FD6080000000000000001000000010000000000009100004091000040f901000000201a093001000054000000360100000002008090
    Relocations:
      - VirtualAddress:  4
        SymbolName:      .Lstr
        Type:            IMAGE_REL_ARM64_PAGEBASE_REL21
      - VirtualAddress:  8
        SymbolName:      .Lstr
        Type:            IMAGE_REL_ARM64_PAGEOFFSET_12A
      - VirtualAddress:  12
        SymbolName:      function
        Type:            IMAGE_REL_ARM64_BRANCH26
      - VirtualAddress:  16
        SymbolName:      .Lglobal
        Type:            IMAGE_REL_ARM64_PAGEOFFSET_12L
      - VirtualAddress:  20
        SymbolName:      .Lglobal
        Type:            IMAGE_REL_ARM64_PAGEOFFSET_12L
      - VirtualAddress:  24
        SymbolName:      .Lglobal
        Type:            IMAGE_REL_ARM64_PAGEOFFSET_12L
      - VirtualAddress:  28
        SymbolName:      .Lglobal
        Type:            IMAGE_REL_ARM64_PAGEOFFSET_12L
      - VirtualAddress:  32
        SymbolName:      .Lglobal
        Type:            IMAGE_REL_ARM64_PAGEOFFSET_12L
      - VirtualAddress:  36
        SymbolName:      .Lglobal
        Type:            IMAGE_REL_ARM64_PAGEOFFSET_12L
      - VirtualAddress:  40
        SymbolName:      .Lglobal
        Type:            IMAGE_REL_ARM64_PAGEOFFSET_12L
      - VirtualAddress:  44
        SymbolName:      .Lglobal
        Type:            IMAGE_REL_ARM64_PAGEOFFSET_12L
      - VirtualAddress:  48
        SymbolName:      .Lglobal16
        Type:            IMAGE_REL_ARM64_PAGEOFFSET_12L
      - VirtualAddress:  52
        SymbolName:      .Lglobal16
        Type:            IMAGE_REL_ARM64_PAGEOFFSET_12L
      - VirtualAddress:  56
        SymbolName:      .Lglobal16
        Type:            IMAGE_REL_ARM64_PAGEOFFSET_12L
      - VirtualAddress:  60
        SymbolName:      .Lglobal16
        Type:            IMAGE_REL_ARM64_PAGEOFFSET_12L
      - VirtualAddress:  64
        SymbolName:      .Lglobal16
        Type:            IMAGE_REL_ARM64_PAGEOFFSET_12L
      - VirtualAddress:  68
        SymbolName:      .Lglobal16
        Type:            IMAGE_REL_ARM64_PAGEOFFSET_12L
      - VirtualAddress:  72
        SymbolName:      .Lglobal16
        Type:            IMAGE_REL_ARM64_PAGEOFFSET_12L
      - VirtualAddress:  76
        SymbolName:      .Lglobal16
        Type:            IMAGE_REL_ARM64_PAGEOFFSET_12L
      - VirtualAddress:  80
        SymbolName:      .Lglobal16
        Type:            IMAGE_REL_ARM64_PAGEOFFSET_12L
      - VirtualAddress:  84
        SymbolName:      .Lglobal16
        Type:            IMAGE_REL_ARM64_PAGEOFFSET_12L
      - VirtualAddress:  88
        SymbolName:      .Lglobal
        Type:            IMAGE_REL_ARM64_PAGEOFFSET_12L
      - VirtualAddress:  92
        SymbolName:      .Lglobal16
        Type:            IMAGE_REL_ARM64_PAGEBASE_REL21
      - VirtualAddress:  96
        SymbolName:      .Lglobal0
        Type:            IMAGE_REL_ARM64_PAGEOFFSET_12L
      - VirtualAddress:  112
        SymbolName:      .Lglobal
        Type:            IMAGE_REL_ARM64_ADDR64
      - VirtualAddress:  120
        SymbolName:      .Lglobal
        Type:            IMAGE_REL_ARM64_ADDR32NB
      - VirtualAddress:  124
        SymbolName:      .Lglobal
        Type:            IMAGE_REL_ARM64_SECREL
      - VirtualAddress:  128
        SymbolName:      .Lglobal5000
        Type:            IMAGE_REL_ARM64_SECREL_LOW12A
      - VirtualAddress:  132
        SymbolName:      .Lglobal5000
        Type:            IMAGE_REL_ARM64_SECREL_HIGH12A
      - VirtualAddress:  136
        SymbolName:      .Lglobal5000
        Type:            IMAGE_REL_ARM64_SECREL_LOW12L
      - VirtualAddress:  140
        SymbolName:      .Lglobal
        Type:            IMAGE_REL_ARM64_SECTION
      - VirtualAddress:  144
        SymbolName:      .Lglobal
        Type:            IMAGE_REL_ARM64_REL21
      - VirtualAddress:  148
        SymbolName:      function
        Type:            IMAGE_REL_ARM64_BRANCH19
      - VirtualAddress:  152
        SymbolName:      function
        Type:            IMAGE_REL_ARM64_BRANCH14
      - VirtualAddress:  156
        SymbolName:      main
        Type:            IMAGE_REL_ARM64_REL32
      - VirtualAddress:  160
        SymbolName:      .Lstr
        Type:            IMAGE_REL_ARM64_PAGEBASE_REL21
  - Name:            .data
    Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ, IMAGE_SCN_MEM_WRITE ]
    Alignment:       4
    SectionData:     ''
  - Name:            .bss
    Characteristics: [ IMAGE_SCN_CNT_UNINITIALIZED_DATA, IMAGE_SCN_MEM_READ, IMAGE_SCN_MEM_WRITE ]
    Alignment:       4
    SectionData:     ''
  - Name:            .rdata
    Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ]
    Alignment:       1
    SectionData:     00000000202068656C6C6F20776F726C6400
symbols:
  - Name:            .text
    Value:           0
    SectionNumber:   1
    SimpleType:      IMAGE_SYM_TYPE_NULL
    ComplexType:     IMAGE_SYM_DTYPE_NULL
    StorageClass:    IMAGE_SYM_CLASS_STATIC
    SectionDefinition:
      Length:          28
      NumberOfRelocations: 3
      NumberOfLinenumbers: 0
      CheckSum:        1438860354
      Number:          1
  - Name:            .rdata
    Value:           0
    SectionNumber:   4
    SimpleType:      IMAGE_SYM_TYPE_NULL
    ComplexType:     IMAGE_SYM_DTYPE_NULL
    StorageClass:    IMAGE_SYM_CLASS_STATIC
    SectionDefinition:
      Length:          12
      NumberOfRelocations: 0
      NumberOfLinenumbers: 0
      CheckSum:        872944732
      Number:          4
  - Name:            main
    Value:           0
    SectionNumber:   1
    SimpleType:      IMAGE_SYM_TYPE_NULL
    ComplexType:     IMAGE_SYM_DTYPE_NULL
    StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
  - Name:            .Lstr
    Value:           4
    SectionNumber:   4
    SimpleType:      IMAGE_SYM_TYPE_NULL
    ComplexType:     IMAGE_SYM_DTYPE_NULL
    StorageClass:    IMAGE_SYM_CLASS_STATIC
  - Name:            .Lglobal
    Value:           8
    SectionNumber:   4
    SimpleType:      IMAGE_SYM_TYPE_NULL
    ComplexType:     IMAGE_SYM_DTYPE_NULL
    StorageClass:    IMAGE_SYM_CLASS_STATIC
  - Name:            .Lglobal16
    Value:           16
    SectionNumber:   4
    SimpleType:      IMAGE_SYM_TYPE_NULL
    ComplexType:     IMAGE_SYM_DTYPE_NULL
    StorageClass:    IMAGE_SYM_CLASS_STATIC
  - Name:            .Lglobal0
    Value:           0
    SectionNumber:   4
    SimpleType:      IMAGE_SYM_TYPE_NULL
    ComplexType:     IMAGE_SYM_DTYPE_NULL
    StorageClass:    IMAGE_SYM_CLASS_STATIC
  - Name:            function
    Value:           0
    SectionNumber:   0
    SimpleType:      IMAGE_SYM_TYPE_NULL
    ComplexType:     IMAGE_SYM_DTYPE_NULL
    StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
  - Name:            .Lglobal5000
    Value:           5000
    SectionNumber:   4
    SimpleType:      IMAGE_SYM_TYPE_NULL
    ComplexType:     IMAGE_SYM_DTYPE_NULL
    StorageClass:    IMAGE_SYM_CLASS_STATIC
...