diff options
author | Andrei Safronov <andrei.safronov@espressif.com> | 2022-12-26 11:39:46 +0100 |
---|---|---|
committer | stefan.stipanovic <stefan.stipanovic@espressif.com> | 2022-12-26 13:30:51 +0100 |
commit | 310f7652f7961fa8178937c7c928d7f629c8253a (patch) | |
tree | a4b849db6069f934a37c69f689e3fafe1147d1f0 /llvm/lib/Object/ELF.cpp | |
parent | 8c618e8f53b166818e4465405fae676efb4cb1b2 (diff) | |
download | llvm-310f7652f7961fa8178937c7c928d7f629c8253a.zip llvm-310f7652f7961fa8178937c7c928d7f629c8253a.tar.gz llvm-310f7652f7961fa8178937c7c928d7f629c8253a.tar.bz2 |
[Xtensa 2/10] Add Xtensa ELF definitions
Add file with Xtensa ELF relocations. Add Xtensa support to ELF.h,
ELFObject.h and ELFYAML.cpp. Add simple test of Xtensa ELF representation in YAML.
Differential Revision: https://reviews.llvm.org/D64827
Diffstat (limited to 'llvm/lib/Object/ELF.cpp')
-rw-r--r-- | llvm/lib/Object/ELF.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/Object/ELF.cpp b/llvm/lib/Object/ELF.cpp index 93d3476..0ae080c9 100644 --- a/llvm/lib/Object/ELF.cpp +++ b/llvm/lib/Object/ELF.cpp @@ -173,6 +173,13 @@ StringRef llvm::object::getELFRelocationTypeName(uint32_t Machine, break; } break; + case ELF::EM_XTENSA: + switch (Type) { +#include "llvm/BinaryFormat/ELFRelocs/Xtensa.def" + default: + break; + } + break; default: break; } |