summaryrefslogtreecommitdiff
path: root/include/llvm/Support/ELFRelocs/BPF.def
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Support/ELFRelocs/BPF.def')
-rw-r--r--include/llvm/Support/ELFRelocs/BPF.def9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/llvm/Support/ELFRelocs/BPF.def b/include/llvm/Support/ELFRelocs/BPF.def
new file mode 100644
index 0000000000000..868974d683c7a
--- /dev/null
+++ b/include/llvm/Support/ELFRelocs/BPF.def
@@ -0,0 +1,9 @@
+#ifndef ELF_RELOC
+#error "ELF_RELOC must be defined"
+#endif
+
+// No relocation
+ELF_RELOC(R_BPF_NONE, 0)
+// Map index in "maps" section to file descriptor
+// within ld_64 instruction.
+ELF_RELOC(R_BPF_MAP_FD, 1)