From cfb51f54ba8033a507a985763f0e7fc1b9b6d69f Mon Sep 17 00:00:00 2001 From: Alexei Starovoitov Date: Fri, 15 Jul 2016 22:27:55 +0000 Subject: BPF: Use official ELF e_machine value The same value for EM_BPF is being propagated to glibc, elfutils, and binutils. Signed-off-by: Richard Henderson Signed-off-by: Alexei Starovoitov llvm-svn: 275633 --- llvm/lib/Object/ELF.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'llvm/lib/Object/ELF.cpp') diff --git a/llvm/lib/Object/ELF.cpp b/llvm/lib/Object/ELF.cpp index 4002eb7b459..2dde18a2428 100644 --- a/llvm/lib/Object/ELF.cpp +++ b/llvm/lib/Object/ELF.cpp @@ -111,6 +111,12 @@ StringRef getELFRelocationTypeName(uint32_t Machine, uint32_t Type) { default: break; } + case ELF::EM_BPF: + switch (Type) { +#include "llvm/Support/ELFRelocs/BPF.def" + default: + break; + } break; default: break; -- cgit v1.2.3