summaryrefslogtreecommitdiff
path: root/elf
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2016-06-20 15:49:32 -0700
committerRichard Henderson <rth@twiddle.net>2016-06-28 09:35:46 -0700
commite402823ef3852704296cd775c58e4bc633c07f20 (patch)
tree34716689cf274909a623d370216b29292d47a8de /elf
parent94e73c95d9b5ac7d3b3f178e2ca03ef6b60e82aa (diff)
elf.h: Add declarations for BPF
The EM_BPF number has been officially assigned, though it has not yet been posted to the gabi webpage yet. * elf/elf.h (EM_BPF): New. (EM_NUM): Update. (R_BPF_NONE, R_BPF_MAP_FD): New.
Diffstat (limited to 'elf')
-rw-r--r--elf/elf.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/elf/elf.h b/elf/elf.h
index 7fc09b9531..b6112d9d55 100644
--- a/elf/elf.h
+++ b/elf/elf.h
@@ -359,7 +359,9 @@ typedef struct
/* reserved 225-242 */
#define EM_RISCV 243 /* RISC-V */
-#define EM_NUM 244
+#define EM_BPF 247 /* Linux BPF -- in-kernel virtual machine */
+
+#define EM_NUM 248
/* Old spellings/synonyms. */
@@ -3675,6 +3677,10 @@ enum
#define R_TILEGX_NUM 130
+/* BPF specific declarations. */
+
+#define R_BPF_NONE 0 /* No reloc */
+#define R_BPF_MAP_FD 1 /* Map fd to pointer */
__END_DECLS