1 /* Generic support for 64-bit ELF 2 Copyright 1993, 1995, 1998, 1999, 2001, 2002, 2004, 2005 3 Free Software Foundation, Inc. 4 5 This file is part of BFD, the Binary File Descriptor library. 6 7 This program 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 2 of the License, or 10 (at your option) any later version. 11 12 This program 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 this program; if not, write to the Free Software 19 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ 20 21 #include "bfd.h" 22 #include "sysdep.h" 23 #include "libbfd.h" 24 #include "elf-bfd.h" 25 26 /* This does not include any relocation information, but should be 27 good enough for GDB or objdump to read the file. */ 28 29 static reloc_howto_type dummy = 30 HOWTO (0, /* type */ 31 0, /* rightshift */ 32 0, /* size (0 = byte, 1 = short, 2 = long) */ 33 0, /* bitsize */ 34 FALSE, /* pc_relative */ 35 0, /* bitpos */ 36 complain_overflow_dont, /* complain_on_overflow */ 37 NULL, /* special_function */ 38 "UNKNOWN", /* name */ 39 FALSE, /* partial_inplace */ 40 0, /* src_mask */ 41 0, /* dst_mask */ 42 FALSE); /* pcrel_offset */ 43 44 static void 45 elf_generic_info_to_howto (bfd *abfd ATTRIBUTE_UNUSED, 46 arelent *bfd_reloc, 47 Elf_Internal_Rela *elf_reloc ATTRIBUTE_UNUSED) 48 { 49 bfd_reloc->howto = &dummy; 50 } 51 52 static void 53 elf_generic_info_to_howto_rel (bfd *abfd ATTRIBUTE_UNUSED, 54 arelent *bfd_reloc, 55 Elf_Internal_Rela *elf_reloc ATTRIBUTE_UNUSED) 56 { 57 bfd_reloc->howto = &dummy; 58 } 59 60 #define TARGET_LITTLE_SYM bfd_elf64_riscv_vec 61 #define TARGET_LITTLE_NAME "elf64-riscv" 62 #define ELF_ARCH bfd_arch_riscv64 63 #define ELF_MACHINE_CODE EM_RISCV 64 #define ELF_MAXPAGESIZE 0x1000 65 #define bfd_elf64_bfd_reloc_type_lookup bfd_default_reloc_type_lookup 66 #define elf_info_to_howto elf_generic_info_to_howto 67 #define elf_info_to_howto_rel elf_generic_info_to_howto_rel 68 69 #include "elf64-target.h" 70