mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-14 03:29:57 +00:00
a764379458
Also add a test for /FIXED. https://reviews.llvm.org/D45087 llvm-svn: 328879
25 lines
993 B
Plaintext
25 lines
993 B
Plaintext
# REQUIRES: x86
|
|
# RUN: yaml2obj < %p/Inputs/hello32.yaml > %t.obj
|
|
#
|
|
# RUN: lld-link %t.obj /fixed %p/Inputs/std32.lib /subsystem:console \
|
|
# RUN: /entry:main@0 /debug /out:%t.fixed.exe
|
|
# RUN: llvm-readobj -file-headers %t.fixed.exe | \
|
|
# RUN: FileCheck -check-prefix=EXEFIXED %s
|
|
#
|
|
# RUN: lld-link %t.obj %p/Inputs/std32.lib /subsystem:console \
|
|
# RUN: /entry:main@0 /debug /out:%t.exe
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=EXEREL %s
|
|
#
|
|
# RUN: yaml2obj < %p/Inputs/export.yaml > %t.obj
|
|
#
|
|
# RUN: lld-link %t.obj /dll /fixed /debug /out:%t.fixed.dll
|
|
# RUN: llvm-readobj -file-headers %t.fixed.dll | FileCheck -check-prefix=DLLFIXED %s
|
|
#
|
|
# RUN: lld-link %t.obj /dll /debug /out:%t.dll
|
|
# RUN: llvm-readobj -file-headers %t.dll | FileCheck -check-prefix=DLLREL %s
|
|
|
|
EXEFIXED-NOT: IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE
|
|
DLLFIXED-NOT: IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE
|
|
EXEREL: IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE
|
|
DLLREL: IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE
|