2015-06-17 07:13:00 +08:00
|
|
|
# RUN: yaml2obj < %p/Inputs/ret42.yaml > %t.obj
|
|
|
|
|
2015-08-07 00:47:46 +08:00
|
|
|
# RUN: lld-link /out:%t.exe /entry:main %t.obj
|
2015-06-17 07:13:00 +08:00
|
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=BIND %s
|
2017-09-16 06:49:13 +08:00
|
|
|
# RUN: lld-link /allowbind /out:%t.exe /entry:main %t.obj
|
|
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=BIND %s
|
|
|
|
BIND-NOT: IMAGE_DLL_CHARACTERISTICS_NO_BIND
|
|
|
|
|
|
|
|
# RUN: lld-link /allowbind:no /out:%t.exe /entry:main %t.obj
|
|
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=NOBIND %s
|
|
|
|
NOBIND: IMAGE_DLL_CHARACTERISTICS_NO_BIND
|
2015-06-17 07:13:00 +08:00
|
|
|
|
2015-08-07 00:47:46 +08:00
|
|
|
# RUN: lld-link /out:%t.exe /entry:main %t.obj
|
2015-06-17 07:13:00 +08:00
|
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=ISO %s
|
2015-08-07 00:47:46 +08:00
|
|
|
# RUN: lld-link /allowisolation /out:%t.exe /entry:main %t.obj
|
2015-06-17 07:13:00 +08:00
|
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=ISO %s
|
|
|
|
ISO-NOT: IMAGE_DLL_CHARACTERISTICS_NO_ISOLATION
|
|
|
|
|
2015-08-07 00:47:46 +08:00
|
|
|
# RUN: lld-link /allowisolation:no /out:%t.exe /entry:main %t.obj
|
2015-06-17 07:13:00 +08:00
|
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=NOISO %s
|
|
|
|
NOISO: IMAGE_DLL_CHARACTERISTICS_NO_ISOLATION
|
|
|
|
|
2015-08-07 00:47:46 +08:00
|
|
|
# RUN: lld-link /out:%t.exe /entry:main %t.obj
|
2015-06-17 07:13:00 +08:00
|
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=ENT %s
|
2015-08-07 00:47:46 +08:00
|
|
|
# RUN: lld-link /out:%t.exe /entry:main /highentropyva %t.obj
|
2015-06-17 07:13:00 +08:00
|
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=ENT %s
|
|
|
|
ENT: IMAGE_DLL_CHARACTERISTICS_HIGH_ENTROPY_VA
|
|
|
|
|
2015-08-07 00:47:46 +08:00
|
|
|
# RUN: lld-link /out:%t.exe /highentropyva:no /out:%t.exe /entry:main %t.obj
|
2015-06-17 07:13:00 +08:00
|
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=NOENT %s
|
|
|
|
NOENT-NOT: IMAGE_DLL_CHARACTERISTICS_HIGH_ENTROPY_VA
|
|
|
|
|
2018-05-31 21:43:02 +08:00
|
|
|
# RUN: lld-link /out:%t.exe /entry:main /integritycheck %t.obj
|
|
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=INT %s
|
|
|
|
INT: IMAGE_DLL_CHARACTERISTICS_FORCE_INTEGRITY
|
|
|
|
|
|
|
|
# RUN: lld-link /out:%t.exe /entry:main %t.obj
|
|
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=NOINT %s
|
|
|
|
# RUN: lld-link /out:%t.exe /integritycheck:no /out:%t.exe /entry:main %t.obj
|
|
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=NOINT %s
|
|
|
|
NOINT-NOT: IMAGE_DLL_CHARACTERISTICS_FORCE_INTEGRITY
|
|
|
|
|
2015-08-07 00:47:46 +08:00
|
|
|
# RUN: lld-link /out:%t.exe /entry:main %t.obj
|
2015-06-17 07:13:00 +08:00
|
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=NXCOMPAT %s
|
2015-08-07 00:47:46 +08:00
|
|
|
# RUN: lld-link /out:%t.exe /entry:main /nxcompat %t.obj
|
2015-06-17 07:13:00 +08:00
|
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=NXCOMPAT %s
|
|
|
|
NXCOMPAT: IMAGE_DLL_CHARACTERISTICS_NX_COMPAT
|
|
|
|
|
2015-08-07 00:47:46 +08:00
|
|
|
# RUN: lld-link /out:%t.exe /nxcompat:no /out:%t.exe /entry:main %t.obj
|
2015-06-17 07:13:00 +08:00
|
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=NONXCOMPAT %s
|
|
|
|
NONXCOMPAT-NOT: IMAGE_DLL_CHARACTERISTICS_NX_COMPAT
|
|
|
|
|
2015-08-07 00:47:46 +08:00
|
|
|
# RUN: lld-link /out:%t.exe /entry:main %t.obj
|
2015-06-17 07:13:00 +08:00
|
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=TSAWARE %s
|
2015-08-07 00:47:46 +08:00
|
|
|
# RUN: lld-link /out:%t.exe /entry:main /tsaware %t.obj
|
2015-06-17 07:13:00 +08:00
|
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=TSAWARE %s
|
|
|
|
TSAWARE: IMAGE_DLL_CHARACTERISTICS_TERMINAL_SERVER_AWARE
|
|
|
|
|
2015-08-07 00:47:46 +08:00
|
|
|
# RUN: lld-link /tsaware:no /out:%t.exe /entry:main %t.obj
|
2015-06-17 07:13:00 +08:00
|
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=NOTSAWARE %s
|
2018-04-26 04:32:00 +08:00
|
|
|
# RUN: lld-link /dll /out:%t.dll /entry:main %t.obj
|
|
|
|
# RUN: llvm-readobj -file-headers %t.dll | FileCheck -check-prefix=NOTSAWARE %s
|
|
|
|
# RUN: lld-link /tsaware /dll /out:%t.dll /entry:main %t.obj
|
|
|
|
# RUN: llvm-readobj -file-headers %t.dll | FileCheck -check-prefix=NOTSAWARE %s
|
2015-06-17 07:13:00 +08:00
|
|
|
NOTSAWARE-NOT: IMAGE_DLL_CHARACTERISTICS_TERMINAL_SERVER_AWARE
|