xref: /llvm-project/lld/test/COFF/arm64-dynamicbase.s (revision 85d0fbeaae46989d062bed975d1b3c475c874146)
1// REQUIRES: aarch64
2// RUN: llvm-mc -filetype=obj -triple=aarch64-windows %s -o %t.obj
3// RUN: not lld-link -entry:_start -subsystem:console %t.obj -out:%t.exe -dynamicbase:no 2>&1 | FileCheck %s
4
5// RUN: llvm-mc -filetype=obj -triple=arm64ec-windows %s -o %t.obj
6// RUN: not lld-link -entry:_start -subsystem:console %t.obj -out:%t.exe -dynamicbase:no -machine:arm64ec 2>&1 \
7// RUN:              | FileCheck %s -check-prefix=ARM64EC
8// RUN: not lld-link -entry:_start -subsystem:console %t.obj -out:%t.exe -dynamicbase:no -machine:arm64x -dll -noentry 2>&1 \
9// RUN:              | FileCheck %s -check-prefix=ARM64X
10 .globl _start
11_start:
12 ret
13
14# CHECK: dynamicbase:no is not compatible with arm64
15# ARM64EC: dynamicbase:no is not compatible with arm64ec
16# ARM64X: dynamicbase:no is not compatible with arm64x
17