46 lines · plain
1# REQUIRES: x862 3# RUN: llvm-mc -triple=x86_64-windows %s -filetype=obj -o %t.obj4 5# RUN: lld-link -dll -out:%t.dll -entry:entry %t.obj -subsystem:console6# RUN: llvm-objdump -p %t.dll | FileCheck %s7 8# CHECK: Export Table:9# CHECK: DLL name: directives.s.tmp.dll10# CHECK: Ordinal RVA Name11# CHECK-NEXT: 1 0x1000 exportfn112# CHECK-NEXT: 2 0x1000 exportfn213# CHECK-NEXT: 3 0x1000 exportfn314# CHECK-NEXT: 4 0x1000 exportfn415# CHECK-NEXT: 5 0x1000 exportfn516# CHECK-NEXT: 6 0x1000 exportfn617 18 .global entry19 .global exportfn120 .global exportfn221 .global exportfn322 .global exportfn423 .global exportfn524 .global exportfn625 .text26entry:27exportfn1:28exportfn2:29exportfn3:30exportfn4:31exportfn5:32exportfn6:33 ret34 .section .drectve35# Test that directive strings can be separated by any combination of36# spaces and null bytes.37 .ascii "-export:exportfn1 "38 .asciz "-export:exportfn2"39 .asciz "-export:exportfn3"40 .asciz "-export:exportfn4 "41 .byte 042 .ascii " "43 .byte 044 .asciz "-export:exportfn5"45 .asciz " -export:exportfn6"46