32 lines · plain
1The executable was generated like so:2$ cat t.c3int main() { return 0; }4$ clang --target=i686-windows -c t.c -o t.o5$ lld-link t.o -out:t.exe -entry:main -debug6 7It has a mingw-style symbol table in the executable, which MSVC-produced images8don't have.9 10RUN: llvm-nm %p/Inputs/main-ret-zero-pe-i386.exe \11RUN: | FileCheck %s -check-prefix PE-EXE12 13PE-EXE: 00401000 t .bss14PE-EXE: 00401000 t .data15PE-EXE: 00401000 t .text16PE-EXE: 00401000 T _main17 18The DLL was generated like so:19$ cat t.c20int DllMain(void *mod, long reason, void *reserved) { return 1; }21$ clang --target=i686-windows -c t.c -o t.o22$ lld-link t.o -out:t.exe -entry:DllMain -debug -dll23 24 25RUN: llvm-nm %p/Inputs/main-ret-zero-pe-i386.dll \26RUN: | FileCheck %s -check-prefix PE-DLL27 28PE-DLL: 10001000 t .bss29PE-DLL: 10001000 t .data30PE-DLL: 10001000 t .text31PE-DLL: 10001000 T _DllMain32