[PATCH] elf.h: Add BPF relocation types.

Florian Weimer fweimer@redhat.com
Thu Jun 21 14:53:00 GMT 2018


On 06/16/2018 11:45 PM, Mark Wielaard wrote:

> diff --git a/elf/elf.h b/elf/elf.h
> index a5b2811ce0..75043bcbf9 100644
> --- a/elf/elf.h
> +++ b/elf/elf.h
> @@ -3850,7 +3850,8 @@ enum
>   /* BPF specific declarations.  */
>   
>   #define R_BPF_NONE		0	/* No reloc */
> -#define R_BPF_MAP_FD		1	/* Map fd to pointer */
> +#define R_BPF_64_64		1
> +#define R_BPF_64_32		10
>   
>   /* Imagination Meta specific relocations. */

This still needs review from someone experienced with <elf.h> updates.

Thanks,
Florian



More information about the Libc-alpha mailing list