mirror of
https://github.com/intel/llvm.git
synced 2026-01-13 11:02:04 +08:00
[LLD][MinGW] Handle MIPS machine (#157742)
This commit is contained in:
@@ -451,6 +451,8 @@ bool link(ArrayRef<const char *> argsArr, llvm::raw_ostream &stdoutOS,
|
||||
add("-machine:arm64ec");
|
||||
else if (s == "arm64xpe")
|
||||
add("-machine:arm64x");
|
||||
else if (s == "mipspe")
|
||||
add("-machine:mips");
|
||||
else
|
||||
error("unknown parameter: -m" + s);
|
||||
}
|
||||
|
||||
@@ -37,6 +37,12 @@ ARM64X-SAME: -machine:arm64x
|
||||
ARM64X-SAME: -alternatename:__image_base__=__ImageBase
|
||||
ARM64X-SAME: foo.o
|
||||
|
||||
RUN: ld.lld -### foo.o -m mipspe 2>&1 | FileCheck -check-prefix=MIPS %s
|
||||
MIPS: -out:a.exe
|
||||
MIPS-SAME: -machine:mips
|
||||
MIPS-SAME: -alternatename:__image_base__=__ImageBase
|
||||
MIPS-SAME: foo.o
|
||||
|
||||
RUN: ld.lld -### foo.o -m i386pep -shared 2>&1 | FileCheck -check-prefix=SHARED %s
|
||||
RUN: ld.lld -### foo.o -m i386pep --shared 2>&1 | FileCheck -check-prefix=SHARED %s
|
||||
RUN: ld.lld -### foo.o -m i386pep --dll 2>&1 | FileCheck -check-prefix=SHARED %s
|
||||
|
||||
Reference in New Issue
Block a user