forked from OSchip/llvm-project
41 lines
1.7 KiB
Plaintext
41 lines
1.7 KiB
Plaintext
# Tests for miscellaneous command line options.
|
|
|
|
# RUN: yaml2obj %p/Inputs/nop.obj.yaml > %t-x86.obj
|
|
# RUN: yaml2obj %p/Inputs/nop64.obj.yaml > %t-x64.obj
|
|
|
|
# RUN: lld -flavor link /align:8192 /out:%t.exe /entry:start \
|
|
# RUN: /subsystem:console -- %t-x86.obj
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=ALIGN %s
|
|
ALIGN: SectionAlignment: 8192
|
|
|
|
# RUN: lld -flavor link /allowbind:no /out:%t.exe /entry:start \
|
|
# RUN: /subsystem:console -- %t-x86.obj
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=NOBIND %s
|
|
NOBIND: IMAGE_DLL_CHARACTERISTICS_NO_BIND
|
|
|
|
# RUN: lld -flavor link /allowisolation:no /out:%t.exe /entry:start \
|
|
# RUN: /subsystem:console -- %t-x86.obj
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=NOISO %s
|
|
NOISO: IMAGE_DLL_CHARACTERISTICS_NO_ISOLATION
|
|
|
|
# RUN: lld -flavor link /swaprun:cd /out:%t.exe /entry:start \
|
|
# RUN: /subsystem:console -- %t-x86.obj
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=RUNCD %s
|
|
RUNCD: IMAGE_FILE_REMOVABLE_RUN_FROM_SWAP
|
|
|
|
# RUN: lld -flavor link /swaprun:net /out:%t.exe /entry:start \
|
|
# RUN: /subsystem:console -- %t-x86.obj
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=RUNNET %s
|
|
RUNNET: IMAGE_FILE_NET_RUN_FROM_SWAP
|
|
|
|
# RUN: lld -flavor link /machine:x64 /force /highentropyva /out:%t.exe \
|
|
# RUN: /entry:start /subsystem:console -- %t-x64.obj
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=ENT %s
|
|
ENT: IMAGE_DLL_CHARACTERISTICS_HIGH_ENTROPY_VA
|
|
|
|
# RUN: lld -flavor link /machine:x64 /force /highentropyva:no /out:%t.exe \
|
|
# RUN: /entry:start /subsystem:console -- %t-x64.obj
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=NOENT %s
|
|
NOENT-NOT: IMAGE_DLL_CHARACTERISTICS_HIGH_ENTROPY_VA
|
|
|