1# REQUIRES: x86 2 3# RUN: llvm-mc -triple=x86_64-windows %s -filetype=obj -o %t.obj 4 5# RUN: lld-link -dll -out:%t.dll -entry:entry %t.obj -subsystem:console 6# RUN: llvm-objdump -p %t.dll | FileCheck %s 7 8# CHECK: Export Table: 9# CHECK: DLL name: directives.s.tmp.dll 10# CHECK: Ordinal RVA Name 11# CHECK-NEXT: 0 0 12# CHECK-NEXT: 1 0x1000 exportfn1 13# CHECK-NEXT: 2 0x1000 exportfn2 14# CHECK-NEXT: 3 0x1000 exportfn3 15# CHECK-NEXT: 4 0x1000 exportfn4 16# CHECK-NEXT: 5 0x1000 exportfn5 17# CHECK-NEXT: 6 0x1000 exportfn6 18 19 .global entry 20 .global exportfn1 21 .global exportfn2 22 .global exportfn3 23 .global exportfn4 24 .global exportfn5 25 .global exportfn6 26 .text 27entry: 28exportfn1: 29exportfn2: 30exportfn3: 31exportfn4: 32exportfn5: 33exportfn6: 34 ret 35 .section .drectve 36# Test that directive strings can be separated by any combination of 37# spaces and null bytes. 38 .ascii "-export:exportfn1 " 39 .asciz "-export:exportfn2" 40 .asciz "-export:exportfn3" 41 .asciz "-export:exportfn4 " 42 .byte 0 43 .ascii " " 44 .byte 0 45 .asciz "-export:exportfn5" 46 .asciz " -export:exportfn6" 47