aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/COFFImportFile.cpp
diff options
context:
space:
mode:
authorHervé Poussineau <hpoussin@reactos.org>2024-12-26 06:56:02 +0100
committerGitHub <noreply@github.com>2024-12-26 13:56:02 +0800
commita72bfc5a1e5381012213df36389524f74ef7c8a3 (patch)
tree9ab771f91f0a7e2bd090499585ee2234d22bbf95 /llvm/lib/Object/COFFImportFile.cpp
parenta0e1fcc093e0bb1265d8a6977f96dff51d9f5318 (diff)
downloadllvm-a72bfc5a1e5381012213df36389524f74ef7c8a3.zip
llvm-a72bfc5a1e5381012213df36389524f74ef7c8a3.tar.gz
llvm-a72bfc5a1e5381012213df36389524f74ef7c8a3.tar.bz2
[llvm-dlltool] Handle MIPS R4000 architecture (#114621)
Diffstat (limited to 'llvm/lib/Object/COFFImportFile.cpp')
-rw-r--r--llvm/lib/Object/COFFImportFile.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Object/COFFImportFile.cpp b/llvm/lib/Object/COFFImportFile.cpp
index ff3dcf9..595533f 100644
--- a/llvm/lib/Object/COFFImportFile.cpp
+++ b/llvm/lib/Object/COFFImportFile.cpp
@@ -133,6 +133,8 @@ static uint16_t getImgRelRelocation(MachineTypes Machine) {
return IMAGE_REL_ARM64_ADDR32NB;
case IMAGE_FILE_MACHINE_I386:
return IMAGE_REL_I386_DIR32NB;
+ case IMAGE_FILE_MACHINE_R4000:
+ return IMAGE_REL_MIPS_REFWORDNB;
}
}