CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
95 lines
2.7 KiB
Plaintext
95 lines
2.7 KiB
Plaintext
Test EXPORTAS in importlibs.
|
|
|
|
RUN: split-file %s %t.dir && cd %t.dir
|
|
RUN: llvm-lib -machine:amd64 -def:test.def -out:test.lib
|
|
|
|
RUN: llvm-nm --print-armap test.lib | FileCheck --check-prefix=ARMAP %s
|
|
|
|
ARMAP: Archive map
|
|
ARMAP-NEXT: __IMPORT_DESCRIPTOR_test in test.dll
|
|
ARMAP-NEXT: __NULL_IMPORT_DESCRIPTOR in test.dll
|
|
ARMAP-NEXT: __imp_func in test.dll
|
|
ARMAP-NEXT: __imp_func2 in test.dll
|
|
ARMAP-NEXT: __imp_func3 in test.dll
|
|
ARMAP-NEXT: __imp_mydata in test.dll
|
|
ARMAP-NEXT: func in test.dll
|
|
ARMAP-NEXT: func2 in test.dll
|
|
ARMAP-NEXT: func3 in test.dll
|
|
ARMAP-NEXT: test_NULL_THUNK_DATA in test.dll
|
|
|
|
RUN: llvm-readobj test.lib | FileCheck --check-prefix=READOBJ %s
|
|
|
|
READOBJ: File: test.lib(test.dll)
|
|
READOBJ-NEXT: Format: COFF-x86-64
|
|
READOBJ-NEXT: Arch: x86_64
|
|
READOBJ-NEXT: AddressSize: 64bit
|
|
READOBJ-EMPTY:
|
|
READOBJ-NEXT: File: test.lib(test.dll)
|
|
READOBJ-NEXT: Format: COFF-x86-64
|
|
READOBJ-NEXT: Arch: x86_64
|
|
READOBJ-NEXT: AddressSize: 64bit
|
|
READOBJ-EMPTY:
|
|
READOBJ-NEXT: File: test.lib(test.dll)
|
|
READOBJ-NEXT: Format: COFF-x86-64
|
|
READOBJ-NEXT: Arch: x86_64
|
|
READOBJ-NEXT: AddressSize: 64bit
|
|
READOBJ-EMPTY:
|
|
READOBJ-NEXT: File: test.dll
|
|
READOBJ-NEXT: Format: COFF-import-file-x86-64
|
|
READOBJ-NEXT: Type: code
|
|
READOBJ-NEXT: Name type: export as
|
|
READOBJ-NEXT: Export name: expfunc
|
|
READOBJ-NEXT: Symbol: __imp_func
|
|
READOBJ-NEXT: Symbol: func
|
|
READOBJ-EMPTY:
|
|
READOBJ-NEXT: File: test.dll
|
|
READOBJ-NEXT: Format: COFF-import-file-x86-64
|
|
READOBJ-NEXT: Type: data
|
|
READOBJ-NEXT: Name type: export as
|
|
READOBJ-NEXT: Export name: expdata
|
|
READOBJ-NEXT: Symbol: __imp_mydata
|
|
READOBJ-EMPTY:
|
|
READOBJ-NEXT: File: test.dll
|
|
READOBJ-NEXT: Format: COFF-import-file-x86-64
|
|
READOBJ-NEXT: Type: code
|
|
READOBJ-NEXT: Name type: export as
|
|
READOBJ-NEXT: Export name: expfunc2
|
|
READOBJ-NEXT: Symbol: __imp_func2
|
|
READOBJ-NEXT: Symbol: func2
|
|
READOBJ-EMPTY:
|
|
READOBJ-NEXT: File: test.dll
|
|
READOBJ-NEXT: Format: COFF-import-file-x86-64
|
|
READOBJ-NEXT: Type: code
|
|
READOBJ-NEXT: Name type: export as
|
|
READOBJ-NEXT: Export name: expfunc3
|
|
READOBJ-NEXT: Symbol: __imp_func3
|
|
READOBJ-NEXT: Symbol: func3
|
|
|
|
|
|
EXPORTAS must be at the end of entry declaration.
|
|
RUN: not llvm-lib -machine:amd64 -def:test2.def -out:test2.lib 2>&1 \
|
|
RUN: | FileCheck --check-prefix=ERROR %s
|
|
RUN: not llvm-lib -machine:amd64 -def:test3.def -out:test3.lib 2>&1 \
|
|
RUN: | FileCheck --check-prefix=ERROR %s
|
|
ERROR: Invalid data was encountered while parsing the file
|
|
|
|
|
|
#--- test.def
|
|
LIBRARY test.dll
|
|
EXPORTS
|
|
func EXPORTAS expfunc
|
|
mydata DATA EXPORTAS expdata
|
|
func2 = myfunc2 EXPORTAS expfunc2
|
|
func3 = otherdll.otherfunc3 EXPORTAS expfunc3
|
|
|
|
#--- test2.def
|
|
LIBRARY test.dll
|
|
EXPORTS
|
|
func EXPORTAS expfunc
|
|
mydata EXPORTAS expdata DATA
|
|
|
|
#--- test3.def
|
|
LIBRARY test.dll
|
|
EXPORTS
|
|
mydata EXPORTAS
|