llvm-project/lld/test/pecoff/dynamicbase.test

24 lines
920 B
Plaintext

# RUN: yaml2obj %p/Inputs/hello.obj.yaml > %t.obj
#
# RUN: lld -flavor link /out:%t1 /subsystem:console /force -- %t.obj
# RUN: llvm-readobj -file-headers %t1 | FileCheck %s --check-prefix=DYNAMICBASE
#
# RUN: lld -flavor link /out:%t1 /subsystem:console /force /dynamicbase:no \
# RUN: -- %t.obj
# RUN: llvm-readobj -file-headers %t1 | FileCheck %s \
# RUN: --check-prefix=NODYNAMICBASE
#
# RUN: lld -flavor link /out:%t1 /subsystem:console /force /fixed -- %t.obj
# RUN: llvm-readobj -file-headers %t1 | FileCheck %s \
# RUN: --check-prefix=NODYNAMICBASE
#
# RUN: not lld -flavor link /out:%t1 /subsystem:console /force /fixed \
# RUN: /dynamicbase -- %t.obj 2> %t.err
# RUN: FileCheck %s --check-prefix=DYNAMIC-AND-FIXED < %t.err
DYNAMICBASE: IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE
NODYNAMICBASE-NOT: IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE
DYNAMIC-AND-FIXED: /dynamicbase must not be specified with /fixed