1# REQUIRES: x86
2# RUN: yaml2obj < %p/Inputs/hello32.yaml > %t.obj
3#
4# RUN: lld-link -safeseh:no %t.obj /fixed %p/Inputs/std32.lib /subsystem:console \
5# RUN:   /entry:main@0 /debug /out:%t.fixed.exe
6# RUN: llvm-readobj --file-headers %t.fixed.exe | \
7# RUN:   FileCheck -check-prefix=EXEFIXED %s
8#
9# RUN: lld-link -safeseh:no %t.obj %p/Inputs/std32.lib /subsystem:console \
10# RUN:   /entry:main@0 /debug /out:%t.exe
11# RUN: llvm-readobj --file-headers %t.exe | FileCheck -check-prefix=EXEREL %s
12#
13# RUN: yaml2obj < %p/Inputs/export.yaml > %t.obj
14#
15# RUN: lld-link -safeseh:no %t.obj /dll /fixed /debug /out:%t.fixed.dll
16# RUN: llvm-readobj --file-headers %t.fixed.dll | FileCheck -check-prefix=DLLFIXED %s
17#
18# RUN: lld-link -safeseh:no %t.obj /dll /debug /out:%t.dll
19# RUN: llvm-readobj --file-headers %t.dll | FileCheck -check-prefix=DLLREL %s
20
21EXEFIXED-NOT: IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE
22DLLFIXED-NOT: IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE
23EXEREL: IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE
24DLLREL: IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE
25