@@ -12,15 +12,15 @@ RUN: llvm-lib -machine:x64 -def:test.def -out:test-x86_64.lib
12
12
13
13
Link using ARM64EC import library:
14
14
RUN: lld-link -machine:arm64ec -dll -noentry -out:out.dll loadconfig-arm64ec.obj icall.obj hybmp.obj \
15
- RUN: test.obj test-arm64ec.lib test2-arm64ec.lib
15
+ RUN: test.obj test-arm64ec.lib test2-arm64ec.lib -map
16
16
17
17
Link using x86_64 import library:
18
18
RUN: lld-link -machine:arm64ec -dll -noentry -out:out2.dll loadconfig-arm64ec.obj icall.obj hybmp.obj \
19
- RUN: test.obj test-x86_64.lib test2-arm64ec.lib
19
+ RUN: test.obj test-x86_64.lib test2-arm64ec.lib -map
20
20
21
21
Link using x86_64 object file:
22
22
RUN: lld-link -machine:arm64ec -dll -noentry -out:out3.dll loadconfig-arm64ec.obj icall.obj hybmp.obj \
23
- RUN: test-x86_64.obj test-arm64ec.lib test2-arm64ec.lib
23
+ RUN: test-x86_64.obj test-arm64ec.lib test2-arm64ec.lib -map
24
24
25
25
RUN: llvm-readobj --coff-imports out.dll | FileCheck --check-prefix=IMPORTS %s
26
26
RUN: llvm-readobj --coff-imports out2.dll | FileCheck --check-prefix=IMPORTS %s
@@ -87,6 +87,28 @@ TESTSEC-X64-NEXT: 0x180007010 08300000 00500000 10300000 20300000
87
87
TESTSEC-X64-NEXT: 0x180007020 14100000 28100000 00200000 08100000
88
88
TESTSEC-X64-NEXT: 0x180007030 3c100000 a0420000
89
89
90
+ RUN: FileCheck --check-prefix=MAP %s < out.map
91
+ RUN: FileCheck --check-prefix=MAP %s < out2.map
92
+ RUN: FileCheck --check-prefix=MAP %s < out3.map
93
+ MAP: 0001:00000008 #func 0000000180001008 test{{.*}}:test.dll
94
+ MAP-NEXT: 0001:00000014 __impchk_func 0000000180001014 test{{.*}}:test.dll
95
+ MAP-NEXT: 0001:00000028 __impchk_func2 0000000180001028 test{{.*}}:test.dll
96
+ MAP-NEXT: 0001:0000003c #t2func 000000018000103c test2{{.*}}:test2.dll
97
+ MAP-NEXT: 0001:00000048 __impchk_t2func 0000000180001048 test2{{.*}}:test2.dll
98
+ MAP: 0001:00001000 func 0000000180002000 test{{.*}}:test.dll
99
+ MAP-NEXT: 0002:00000000 __imp_data 0000000180003000 test{{.*}}:test.dll
100
+ MAP-NEXT: 0002:00000008 __imp_aux_func 0000000180003008 test{{.*}}:test.dll
101
+ MAP-NEXT: 0002:00000010 __imp_aux_func2 0000000180003010 test{{.*}}:test.dll
102
+ MAP-NEXT: 0002:00000020 __imp_aux_t2func 0000000180003020 test2{{.*}}:test2.dll
103
+ MAP: 0002:00001298 __auximpcopy_data 0000000180004298 test{{.*}}:test.dll
104
+ MAP-NEXT: 0002:000012a0 __auximpcopy_func 00000001800042a0 test{{.*}}:test.dll
105
+ MAP-NEXT: 0002:000012a8 __auximpcopy_func2 00000001800042a8 test{{.*}}:test.dll
106
+ MAP-NEXT: 0002:000012b8 __auximpcopy_t2func 00000001800042b8 test2{{.*}}:test2.dll
107
+ MAP: 0002:00002000 __imp_aux_data 0000000180005000 test{{.*}}:test.dll
108
+ MAP-NEXT: 0002:00002008 __imp_func 0000000180005008 test{{.*}}:test.dll
109
+ MAP-NEXT: 0002:00002010 __imp_func2 0000000180005010 test{{.*}}:test.dll
110
+ MAP-NEXT: 0002:00002020 __imp_t2func 0000000180005020 test2{{.*}}:test2.dll
111
+
90
112
RUN: llvm-readobj --headers out.dll | FileCheck -check-prefix=HEADERS %s
91
113
RUN: llvm-readobj --headers out2.dll | FileCheck -check-prefix=HEADERS %s
92
114
RUN: llvm-readobj --headers out3.dll | FileCheck -check-prefix=HEADERS %s
0 commit comments