aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/tools/llvm-lib/empty.test
blob: 37c841f8db46a49503313d18d0fb389b13d98f1f (plain)
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
Create import libraries with empty exports and make sure that archive symbols
are properly populated.

RUN: split-file %s %t.dir && cd %t.dir

RUN: llvm-lib -machine:arm64 -out:arm64.lib -def:test.def
RUN: llvm-nm --print-armap arm64.lib | FileCheck --check-prefixes=CHECK,NOECMAP %s

RUN: llvm-lib -machine:arm64ec -out:arm64ec.lib -def:test.def
RUN: llvm-nm --print-armap arm64ec.lib | FileCheck --check-prefixes=CHECK,ECMAP %s

CHECK:      Archive map
CHECK-NEXT: __IMPORT_DESCRIPTOR_test in test.dll
CHECK-NEXT: __NULL_IMPORT_DESCRIPTOR in test.dll
CHECK-NEXT: test_NULL_THUNK_DATA in test.dll
CHECK-EMPTY:

ECMAP:      Archive EC map
ECMAP-NEXT: __IMPORT_DESCRIPTOR_test in test.dll
ECMAP-NEXT: __NULL_IMPORT_DESCRIPTOR in test.dll
ECMAP-NEXT: test_NULL_THUNK_DATA in test.dll

NOECMAP-NOT: Archive EC map

#--- test.def
LIBRARY test.dll
EXPORTS