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 <rth@twiddle.net>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
llvm-svn: 275633
This commit is contained in:
Alexei Starovoitov
2016-07-15 22:27:55 +00:00
parent 70a65c28a7
commit cfb51f54ba
8 changed files with 33 additions and 1 deletions

View File

@@ -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;