File: coff-weak-exports.def

package info (click to toggle)
llvm-toolchain-16 1%3A16.0.6-15~deb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,634,792 kB
  • sloc: cpp: 6,179,261; ansic: 1,216,205; asm: 741,319; python: 196,614; objc: 75,325; f90: 49,640; lisp: 32,396; pascal: 12,286; sh: 9,394; perl: 7,442; ml: 5,494; awk: 3,523; makefile: 2,723; javascript: 1,206; xml: 886; fortran: 581; cs: 573
file content (46 lines) | stat: -rw-r--r-- 1,681 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
; RUN: llvm-dlltool -m i386:x86-64 --input-def %s --output-lib %t.a
; RUN: llvm-nm %t.a | FileCheck %s
; RUN: llvm-readobj %t.a | FileCheck -check-prefix=ARCH %s
; RUN: llvm-readobj --symbols %t.a | FileCheck -check-prefix=SYMBOLS %s

LIBRARY test.dll
EXPORTS
TestFunction==AltTestFunction
; When creating an import library, the DLL internal function name of
; the implementation of a function isn't visible at all.
ImpLibName = Implementation
; A different import library name and implementation name can be mixed
; with exposing it via a different name in the DLL than in code.
ImpLibName2 = Implementation2 == AltTestFunction2
; The fact that a DLL export entry is a forward to a different DLL doesn't
; matter for the import library
ImpLibName3 = kernel32.Sleep

; CHECK:      U AltTestFunction
; CHECK-NEXT: W TestFunction
; CHECK:      U __imp_AltTestFunction
; CHECK-NEXT: W __imp_TestFunction
; CHECK:      T ImpLibName
; CHECK-NEXT: T __imp_ImpLibName
; CHECK:      U AltTestFunction2
; CHECK-NEXT: W ImpLibName2
; CHECK:      U __imp_AltTestFunction2
; CHECK-NEXT: W __imp_ImpLibName2
; CHECK:      T ImpLibName3
; CHECK-NEXT: T __imp_ImpLibName3

; ARCH-NOT: unknown arch

; SYMBOLS:        Symbol {
; SYMBOLS:          Name: TestFunction
; SYMBOLS-NEXT:     Value: 0
; SYMBOLS-NEXT:     Section: IMAGE_SYM_UNDEFINED (0)
; SYMBOLS-NEXT:     BaseType: Null (0x0)
; SYMBOLS-NEXT:     ComplexType: Null (0x0)
; SYMBOLS-NEXT:     StorageClass: WeakExternal (0x69)
; SYMBOLS-NEXT:     AuxSymbolCount: 1
; SYMBOLS-NEXT:     AuxWeakExternal {
; SYMBOLS-NEXT:       Linked: AltTestFunction (2)
; SYMBOLS-NEXT:       Search: Alias (0x3)
; SYMBOLS-NEXT:     }
; SYMBOLS-NEXT:   }