1 /* Linux eBPF support for BFD. 2 Copyright (C) 2019-2021 Free Software Foundation, Inc. 3 4 Contributed by Oracle, Inc. 5 6 This file is part of BFD, the Binary File Descriptor library. 7 8 This program is free software; you can redistribute it and/or modify 9 it under the terms of the GNU General Public License as published by 10 the Free Software Foundation; either version 3 of the License, or 11 (at your option) any later version. 12 13 This program is distributed in the hope that it will be useful, 14 but WITHOUT ANY WARRANTY; without even the implied warranty of 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 GNU General Public License for more details. 17 18 You should have received a copy of the GNU General Public License 19 along with this program; if not, write to the Free Software Foundation, 20 Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ 21 22 #ifndef _ELF_BPF_H 23 #define _ELF_BPF_H 24 25 #include "elf/reloc-macros.h" 26 27 /* Relocations. */ 28 START_RELOC_NUMBERS (elf_bpf_reloc_type) 29 RELOC_NUMBER (R_BPF_NONE, 0) 30 RELOC_NUMBER (R_BPF_INSN_64, 1) 31 RELOC_NUMBER (R_BPF_INSN_32, 2) 32 RELOC_NUMBER (R_BPF_INSN_16, 3) 33 RELOC_NUMBER (R_BPF_INSN_DISP16, 4) 34 RELOC_NUMBER (R_BPF_DATA_8_PCREL, 5) 35 RELOC_NUMBER (R_BPF_DATA_16_PCREL, 6) 36 RELOC_NUMBER (R_BPF_DATA_32_PCREL, 7) 37 RELOC_NUMBER (R_BPF_DATA_8, 8) 38 RELOC_NUMBER (R_BPF_DATA_16, 9) 39 RELOC_NUMBER (R_BPF_INSN_DISP32, 10) 40 RELOC_NUMBER (R_BPF_DATA_32, 11) 41 RELOC_NUMBER (R_BPF_DATA_64, 12) 42 RELOC_NUMBER (R_BPF_DATA_64_PCREL, 13) 43 END_RELOC_NUMBERS (R_BPF_max) 44 45 #endif /* _ELF_BPF_H */ 46