1# REQUIRES: x86 2 3# RUN: llvm-mc -triple=i686-windows-gnu %s -filetype=obj -o %t.obj 4 5# RUN: lld-link -lldmingw -exclude-all-symbols -dll -out:%t.dll -entry:DllMainCRTStartup@12 %t.obj 6# RUN: llvm-readobj --coff-exports %t.dll | FileCheck %s -check-prefix=NO-EXPORTS 7 8# NO-EXPORTS-NOT: Name: 9 10.global _foobar 11.global _DllMainCRTStartup@12 12.global _dataSym 13.text 14_DllMainCRTStartup@12: 15 ret 16_foobar: 17 ret 18.data 19_dataSym: 20 .int 4 21 22# Test specifying -exclude-all-symbols, on an object file that contains 23# dllexport directive for some of the symbols. In this case, the dllexported 24# symbols are still exported. 25 26# RUN: yaml2obj %p/Inputs/export.yaml -o %t.obj 27# 28# RUN: lld-link -safeseh:no -out:%t.dll -dll %t.obj -lldmingw -exclude-all-symbols -output-def:%t.def 29# RUN: llvm-readobj --coff-exports %t.dll | FileCheck -check-prefix=DLLEXPORT %s 30 31# DLLEXPORT: Name: exportfn3 32