Commit | Line | Data |
---|---|---|
f8861f5d | 1 | /* tc-bpf.h -- Header file for tc-ebpf.c. |
b3adc24a | 2 | Copyright (C) 2019-2020 Free Software Foundation, Inc. |
f8861f5d JM |
3 | Contributed by Oracle, Inc. |
4 | ||
5 | This file is part of GAS, the GNU Assembler. | |
6 | ||
7 | GAS is free software; you can redistribute it and/or modify | |
8 | it under the terms of the GNU General Public License as published by | |
9 | the Free Software Foundation; either version 3, or (at your option) | |
10 | any later version. | |
11 | ||
12 | GAS is distributed in the hope that it will be useful, | |
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | GNU General Public License for more details. | |
16 | ||
17 | You should have received a copy of the GNU General Public License | |
18 | along with GAS; see the file COPYING. If not, write to the Free | |
19 | Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA | |
20 | 02110-1301, USA. */ | |
21 | ||
22 | #define TC_BPF | |
23 | ||
24 | #define LISTING_HEADER "BPF GAS " | |
25 | ||
26 | /* The target BFD architecture. */ | |
27 | #define TARGET_ARCH bfd_arch_bpf | |
28 | #define TARGET_MACH 0 /* The default. */ | |
29 | ||
30 | #define TARGET_FORMAT \ | |
31 | (target_big_endian ? "elf64-bpfbe" : "elf64-bpfle") | |
32 | ||
33 | /* This is used to set the default value for `target_big_endian'. */ | |
34 | #ifndef TARGET_BYTES_BIG_ENDIAN | |
35 | #define TARGET_BYTES_BIG_ENDIAN 0 | |
36 | #endif | |
37 | ||
38 | /* .-foo gets turned into PC relative relocs. */ | |
39 | #define DIFF_EXPR_OK 1 | |
40 | #define GAS_CGEN_PCREL_R_TYPE(R_TYPE) gas_cgen_pcrel_r_type (R_TYPE) | |
41 | ||
42 | /* Call md_pcrel_from_section(), not md_pcrel_from(). */ | |
43 | #define MD_PCREL_FROM_SECTION(FIXP, SEC) md_pcrel_from_section (FIXP, SEC) | |
f8861f5d JM |
44 | |
45 | /* We don't need to handle .word strangely. */ | |
46 | #define WORKING_DOT_WORD | |
47 | ||
48 | /* Values passed to md_apply_fix don't include the symbol value. */ | |
49 | #define MD_APPLY_SYM_VALUE(FIX) 0 | |
50 | ||
b1766e7c | 51 | #define md_single_noop_insn "mov %r1,%r1" |