1 //===- ELF.cpp - ELF object file implementation -----------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #include "llvm/Object/ELF.h"
15 #define ELF_RELOC(name, value) \
19 StringRef getELFRelocationTypeName(uint32_t Machine, uint32_t Type) {
23 #include "llvm/Support/ELFRelocs/x86_64.def"
31 #include "llvm/Support/ELFRelocs/i386.def"
38 #include "llvm/Support/ELFRelocs/Mips.def"
45 #include "llvm/Support/ELFRelocs/AArch64.def"
52 #include "llvm/Support/ELFRelocs/ARM.def"
59 #include "llvm/Support/ELFRelocs/Hexagon.def"
66 #include "llvm/Support/ELFRelocs/PowerPC.def"
73 #include "llvm/Support/ELFRelocs/PowerPC64.def"
80 #include "llvm/Support/ELFRelocs/SystemZ.def"
86 case ELF::EM_SPARC32PLUS:
89 #include "llvm/Support/ELFRelocs/Sparc.def"
94 case ELF::EM_WEBASSEMBLY:
96 #include "llvm/Support/ELFRelocs/WebAssembly.def"
109 } // end namespace object
110 } // end namespace llvm