[llvm-dev] [iovisor-dev] [PATCH, BPF 1/5] BPF: Use a provisional ELF e_machine value

Alexei Starovoitov via llvm-dev
2016-06-16T05:14:42Z

On Wed, Jun 15, 2016 at 2:37 PM, Richard Henderson via iovisor-dev
<iovisor-dev at lists.iovisor.org> wrote:
> This same value for EM_BPF is being propagated to glibc,
> elfutils, and binutils.

great!
Can you share the link to glibc and the other patches?

> diff --git a/include/llvm/Support/ELF.h b/include/llvm/Support/ELF.h
> index 352fd8a..fb8ff71 100644
> --- a/include/llvm/Support/ELF.h
> +++ b/include/llvm/Support/ELF.h
> @@ -320,6 +320,8 @@ enum {
>    // an official value for Lanai. As soon as one is allocated, this enum
will be
>    // updated to use it.
>    EM_LANAI         = 0x8123, // Lanai 32-bit processor
> +
> +  EM_BPF           = 0xeb9f, // Linux kernel bpf virtual machine

was this id reserved this with whoever managing the numbers ?
The only reason bpf backend used em_none is that we were couldn't
figure out who's responsible for keeping these records.