32 lines · plain
1# REQUIRES: x862 3# RUN: llvm-mc -triple=i686-windows-gnu %s -filetype=obj -o %t.obj4 5# RUN: lld-link -lldmingw -exclude-all-symbols -dll -out:%t.dll -entry:DllMainCRTStartup@12 %t.obj6# RUN: llvm-readobj --coff-exports %t.dll | FileCheck %s -check-prefix=NO-EXPORTS7 8# NO-EXPORTS-NOT: Name:9 10.global _foobar11.global _DllMainCRTStartup@1212.global _dataSym13.text14_DllMainCRTStartup@12:15 ret16_foobar:17 ret18.data19_dataSym:20 .int 421 22# Test specifying -exclude-all-symbols, on an object file that contains23# dllexport directive for some of the symbols. In this case, the dllexported24# symbols are still exported.25 26# RUN: yaml2obj %p/Inputs/export.yaml -o %t.obj27#28# RUN: lld-link -safeseh:no -out:%t.dll -dll %t.obj -lldmingw -exclude-all-symbols -output-def:%t.def29# RUN: llvm-readobj --coff-exports %t.dll | FileCheck -check-prefix=DLLEXPORT %s30 31# DLLEXPORT: Name: exportfn332