elf.h: Add BPF relocation types.

The BPF ELF format has new relocation types R_BPF_64_64 and R_BPF_64_32.
The existing R_BPF_MAP_FD was an extension that never got implemented.
Remove it, because the constant conflicts with the official R_BPF_64_64.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
This commit is contained in:
Mark Wielaard 2018-06-16 23:34:13 +02:00
parent f496b28e61
commit 61ab61c2fd
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2018-06-21 Mark Wielaard <mark@klomp.org>
* elf/elf.h (R_BPF_MAP_FD): Removed.
(R_BPF_64_64, R_BPF_64_32): New.
2018-06-21 Florian Weimer <fweimer@redhat.com>
[BZ #23253]

View File

@ -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. */