aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/ELF.cpp
diff options
context:
space:
mode:
authorMin-Yih Hsu <minyihh@uci.edu>2021-03-07 16:32:03 -0800
committerMin-Yih Hsu <minyihh@uci.edu>2021-03-08 12:30:57 -0800
commit8dddc15297f1101f7e312dd0fd9cd57246dbc8bb (patch)
treeb23e77c9aa4bbca9514b0966a5ad3483fe1f70fe /llvm/lib/Object/ELF.cpp
parentbec7b166923bbaf0882ff4665224d7a8a7320aa0 (diff)
downloadllvm-8dddc15297f1101f7e312dd0fd9cd57246dbc8bb.zip
llvm-8dddc15297f1101f7e312dd0fd9cd57246dbc8bb.tar.gz
llvm-8dddc15297f1101f7e312dd0fd9cd57246dbc8bb.tar.bz2
[M68k](4/8) MC layer and object file support
- Add the M68k-specific MC layer implementation - Add ELF support for M68k - Add M68k-specifc CC and reloc TODO: Currently AsmParser and disassembler are not implemented yet. Please use this bug to track the status: https://bugs.llvm.org/show_bug.cgi?id=48976 Authors: myhsu, m4yers, glaubitz Differential Revision: https://reviews.llvm.org/D88390
Diffstat (limited to 'llvm/lib/Object/ELF.cpp')
-rw-r--r--llvm/lib/Object/ELF.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/Object/ELF.cpp b/llvm/lib/Object/ELF.cpp
index 27a35bb..ffeec311 100644
--- a/llvm/lib/Object/ELF.cpp
+++ b/llvm/lib/Object/ELF.cpp
@@ -22,6 +22,13 @@ using namespace object;
StringRef llvm::object::getELFRelocationTypeName(uint32_t Machine,
uint32_t Type) {
switch (Machine) {
+ case ELF::EM_68K:
+ switch (Type) {
+#include "llvm/BinaryFormat/ELFRelocs/M68k.def"
+ default:
+ break;
+ }
+ break;
case ELF::EM_X86_64:
switch (Type) {
#include "llvm/BinaryFormat/ELFRelocs/x86_64.def"