@@ -5,6 +5,7 @@ RUN: llvm-mc -filetype=obj -triple=arm64-windows arm64-func-sym.s -o arm64-func-
5
5
RUN: llvm-mc -filetype=obj -triple=arm64ec-windows arm64ec-func-sym.s -o arm64ec-func-sym.obj
6
6
RUN: llvm-mc -filetype=obj -triple=arm64ec-windows arm64ec-func-sym2.s -o arm64ec-func-sym2.obj
7
7
RUN: llvm-mc -filetype=obj -triple=arm64ec-windows data-sec.s -o data-sec.obj
8
+ RUN: llvm-mc -filetype=obj -triple=arm64ec-windows data-sec2.s -o data-sec2.obj
8
9
RUN: llvm-mc -filetype=obj -triple=arm64ec-windows empty-sec.s -o arm64ec-empty-sec.obj
9
10
RUN: llvm-mc -filetype=obj -triple=x86_64-windows x86_64-func-sym.s -o x86_64-func-sym.obj
10
11
RUN: llvm-mc -filetype=obj -triple=x86_64-windows empty-sec.s -o x86_64-empty-sec.obj
@@ -119,8 +120,8 @@ DISASMM-NEXT: 18000200d: c3 retq
119
120
120
121
Merging data sections into code sections causes data to be separated from the code when sorting chunks.
121
122
122
- RUN: lld-link -out:testdm.dll -machine:arm64ec arm64ec-func-sym.obj x86_64-func-sym.obj \
123
- RUN: data-sec .obj loadconfig-arm64ec.obj -dll -noentry -merge:.testdata=.text -merge:.rdata=test
123
+ RUN: lld-link -out:testdm.dll -machine:arm64ec arm64ec-func-sym.obj x86_64-func-sym.obj data-sec.obj \
124
+ RUN: data-sec2 .obj loadconfig-arm64ec.obj -dll -noentry -merge:.testdata=.text -merge:.rdata=test
124
125
125
126
RUN: llvm-readobj --coff-load-config testdm.dll | FileCheck -check-prefix=CODEMAPDM %s
126
127
CODEMAPDM: CodeMap [
@@ -135,6 +136,8 @@ DISASMDM: Disassembly of section .text:
135
136
DISASMDM-EMPTY:
136
137
DISASMDM-NEXT: 0000000180001000 <.text>:
137
138
DISASMDM-NEXT: 180001000: 00000001 udf #0x1
139
+ DISASMDM-NEXT: 180001004: 00000000 udf #0x0
140
+ DISASMDM-NEXT: 180001008: 00000002 udf #0x2
138
141
DISASMDM-NEXT: ...
139
142
DISASMDM-NEXT: 180002000: 52800040 mov w0, #0x2
140
143
DISASMDM-NEXT: 180002004: d65f03c0 ret
@@ -254,6 +257,10 @@ x86_64_func_sym2:
254
257
.section .testdata, "rd"
255
258
.xword 1
256
259
260
+ #--- data-sec2.s
261
+ .section .testdata, "rd"
262
+ .xword 2
263
+
257
264
#--- empty-sec.s
258
265
.section .empty1, "xr"
259
266
.section .empty2, "xr"
0 commit comments