Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

bpf, elf: add official ELF machine define for eBPF

Add the official BPF ELF e_machine value that was assigned recently [1,2]
and will be propagated to glibc, et al. LLVM is switching to it in 3.9
release.

[1] https://github.com/llvm-mirror/llvm/commit/36b9c09330bfb5e771914cfe307588f30d5510d2
[2] http://lists.iovisor.org/pipermail/iovisor-dev/2016-June/000266.html

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Daniel Borkmann and committed by
David S. Miller
b02b94b3 cc2e0b3f

+1
+1
include/uapi/linux/elf-em.h
··· 40 40 #define EM_TILEPRO 188 /* Tilera TILEPro */ 41 41 #define EM_MICROBLAZE 189 /* Xilinx MicroBlaze */ 42 42 #define EM_TILEGX 191 /* Tilera TILE-Gx */ 43 + #define EM_BPF 247 /* Linux BPF - in-kernel virtual machine */ 43 44 #define EM_FRV 0x5441 /* Fujitsu FR-V */ 44 45 #define EM_AVR32 0x18ad /* Atmel AVR32 */ 45 46