File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -2181,7 +2181,7 @@ void LinkerDriver::linkerMain(ArrayRef<const char *> argsArr) {
2181
2181
args.hasFlag (OPT_highentropyva, OPT_highentropyva_no, true );
2182
2182
2183
2183
if (!config->dynamicBase &&
2184
- (config->machine == ARMNT || config->machine == ARM64 ))
2184
+ (config->machine == ARMNT || isAnyArm64 ( config->machine ) ))
2185
2185
error (" /dynamicbase:no is not compatible with " +
2186
2186
machineToStr (config->machine ));
2187
2187
Original file line number Diff line number Diff line change 1
1
// REQUIRES: aarch64
2
2
// RUN: llvm-mc -filetype=obj -triple=aarch64-windows %s -o %t.obj
3
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
4
10
.globl _start
5
11
_start:
6
12
ret
7
13
8
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
You can’t perform that action at this time.
0 commit comments