• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1The executable was generated like so:
2$ cat t.c
3int main() { return 0; }
4$ clang --target=i686-windows -c t.c -o t.o
5$ lld-link t.o -out:t.exe -entry:main -debug
6
7It has a mingw-style symbol table in the executable, which MSVC-produced images
8don't have.
9
10RUN: llvm-nm %p/Inputs/main-ret-zero-pe-i386.exe \
11RUN:         | FileCheck %s -check-prefix PE-EXE
12
13PE-EXE: 00401000 t .bss
14PE-EXE: 00401000 t .data
15PE-EXE: 00401000 t .text
16PE-EXE: 00401000 T _main
17
18The DLL was generated like so:
19$ cat t.c
20int DllMain(void *mod, long reason, void *reserved) { return 1; }
21$ clang --target=i686-windows -c t.c -o t.o
22$ lld-link t.o -out:t.exe -entry:DllMain -debug -dll
23
24
25RUN: llvm-nm %p/Inputs/main-ret-zero-pe-i386.dll \
26RUN:         | FileCheck %s -check-prefix PE-DLL
27
28PE-DLL: 10001000 t .bss
29PE-DLL: 10001000 t .data
30PE-DLL: 10001000 t .text
31PE-DLL: 10001000 T _DllMain
32