1226586Sdim/* tc-bpf.h -- Header file for tc-ebpf.c. 2226586Sdim Copyright (C) 2019-2020 Free Software Foundation, Inc. 3226586Sdim Contributed by Oracle, Inc. 4226586Sdim 5226586Sdim This file is part of GAS, the GNU Assembler. 6226586Sdim 7226586Sdim GAS is free software; you can redistribute it and/or modify 8226586Sdim it under the terms of the GNU General Public License as published by 9226586Sdim the Free Software Foundation; either version 3, or (at your option) 10243830Sdim any later version. 11226586Sdim 12226586Sdim GAS is distributed in the hope that it will be useful, 13226586Sdim but WITHOUT ANY WARRANTY; without even the implied warranty of 14226586Sdim MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15226586Sdim GNU General Public License for more details. 16226586Sdim 17226586Sdim You should have received a copy of the GNU General Public License 18226586Sdim along with GAS; see the file COPYING. If not, write to the Free 19243830Sdim Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA 20226586Sdim 02110-1301, USA. */ 21249423Sdim 22249423Sdim#define TC_BPF 23226586Sdim 24234353Sdim#define LISTING_HEADER "BPF GAS " 25226586Sdim 26226586Sdim/* The target BFD architecture. */ 27249423Sdim#define TARGET_ARCH bfd_arch_bpf 28226586Sdim#define TARGET_MACH 0 /* The default. */ 29226586Sdim 30226586Sdim#define TARGET_FORMAT \ 31226586Sdim (target_big_endian ? "elf64-bpfbe" : "elf64-bpfle") 32226586Sdim 33226586Sdim/* This is used to set the default value for `target_big_endian'. */ 34226586Sdim#ifndef TARGET_BYTES_BIG_ENDIAN 35226586Sdim#define TARGET_BYTES_BIG_ENDIAN 0 36226586Sdim#endif 37226586Sdim 38226586Sdim/* .-foo gets turned into PC relative relocs. */ 39239462Sdim#define DIFF_EXPR_OK 1 40239462Sdim#define GAS_CGEN_PCREL_R_TYPE(R_TYPE) gas_cgen_pcrel_r_type (R_TYPE) 41226586Sdim 42226586Sdim/* Call md_pcrel_from_section(), not md_pcrel_from(). */ 43243830Sdim#define MD_PCREL_FROM_SECTION(FIXP, SEC) md_pcrel_from_section (FIXP, SEC) 44226586Sdimextern long md_pcrel_from_section (struct fix *, segT); 45226586Sdim 46226586Sdim/* We don't need to handle .word strangely. */ 47226586Sdim#define WORKING_DOT_WORD 48226586Sdim 49226586Sdim/* Values passed to md_apply_fix don't include the symbol value. */ 50226586Sdim#define MD_APPLY_SYM_VALUE(FIX) 0 51226586Sdim 52226586Sdim