1Create import libraries with empty exports and make sure that archive symbols 2are properly populated. 3 4RUN: split-file %s %t.dir && cd %t.dir 5 6RUN: llvm-lib -machine:arm64 -out:arm64.lib -def:test.def 7RUN: llvm-nm --print-armap arm64.lib | FileCheck --check-prefixes=CHECK,NOECMAP %s 8 9RUN: llvm-lib -machine:arm64ec -out:arm64ec.lib -def:test.def 10RUN: llvm-nm --print-armap arm64ec.lib | FileCheck --check-prefixes=CHECK,ECMAP %s 11 12CHECK: Archive map 13CHECK-NEXT: __IMPORT_DESCRIPTOR_test in test.dll 14CHECK-NEXT: __NULL_IMPORT_DESCRIPTOR in test.dll 15CHECK-NEXT: test_NULL_THUNK_DATA in test.dll 16CHECK-EMPTY: 17 18ECMAP: Archive EC map 19ECMAP-NEXT: __IMPORT_DESCRIPTOR_test in test.dll 20ECMAP-NEXT: __NULL_IMPORT_DESCRIPTOR in test.dll 21ECMAP-NEXT: test_NULL_THUNK_DATA in test.dll 22 23NOECMAP-NOT: Archive EC map 24 25#--- test.def 26LIBRARY test.dll 27EXPORTS 28