12a6b7db3Sskrll /* BFD support for the Alpha architecture. 2*cb63e24eSchristos Copyright (C) 1992-2024 Free Software Foundation, Inc. 32a6b7db3Sskrll 42a6b7db3Sskrll This file is part of BFD, the Binary File Descriptor library. 52a6b7db3Sskrll 62a6b7db3Sskrll This program is free software; you can redistribute it and/or modify 72a6b7db3Sskrll it under the terms of the GNU General Public License as published by 82a6b7db3Sskrll the Free Software Foundation; either version 3 of the License, or 92a6b7db3Sskrll (at your option) any later version. 102a6b7db3Sskrll 112a6b7db3Sskrll This program is distributed in the hope that it will be useful, 122a6b7db3Sskrll but WITHOUT ANY WARRANTY; without even the implied warranty of 132a6b7db3Sskrll MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 142a6b7db3Sskrll GNU General Public License for more details. 152a6b7db3Sskrll 162a6b7db3Sskrll You should have received a copy of the GNU General Public License 172a6b7db3Sskrll along with this program; if not, write to the Free Software 182a6b7db3Sskrll Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, 192a6b7db3Sskrll MA 02110-1301, USA. */ 202a6b7db3Sskrll 212a6b7db3Sskrll #include "sysdep.h" 222a6b7db3Sskrll #include "bfd.h" 232a6b7db3Sskrll #include "libbfd.h" 242a6b7db3Sskrll 252a6b7db3Sskrll #define N(BITS_WORD, BITS_ADDR, NUMBER, PRINT, DEFAULT, NEXT) \ 262a6b7db3Sskrll { \ 276f4ced0bSchristos BITS_WORD, /* Bits in a word. */ \ 286f4ced0bSchristos BITS_ADDR, /* Bits in an address. */ \ 296f4ced0bSchristos 8, /* Bits in a byte. */ \ 302a6b7db3Sskrll bfd_arch_alpha, \ 312a6b7db3Sskrll NUMBER, \ 322a6b7db3Sskrll "alpha", \ 332a6b7db3Sskrll PRINT, \ 346f4ced0bSchristos 3, /* Section alignment power. */ \ 352a6b7db3Sskrll DEFAULT, \ 362a6b7db3Sskrll bfd_default_compatible, \ 372a6b7db3Sskrll bfd_default_scan, \ 38883529b6Schristos bfd_arch_default_fill, \ 392a6b7db3Sskrll NEXT, \ 406f4ced0bSchristos 0 /* Maximum offset of a reloc from the start of an insn. */ \ 412a6b7db3Sskrll } 422a6b7db3Sskrll 432a6b7db3Sskrll #define NN(index) (&arch_info_struct[index]) 442a6b7db3Sskrll 452a6b7db3Sskrll /* These exist only so that we can reasonably disassemble PALcode. */ 462a6b7db3Sskrll static const bfd_arch_info_type arch_info_struct[] = 472a6b7db3Sskrll { 484f645668Schristos N (64, 64, bfd_mach_alpha_ev4, "alpha:ev4", false, NN(1)), 494f645668Schristos N (64, 64, bfd_mach_alpha_ev5, "alpha:ev5", false, NN(2)), 504f645668Schristos N (64, 64, bfd_mach_alpha_ev6, "alpha:ev6", false, 0), 512a6b7db3Sskrll }; 522a6b7db3Sskrll 532a6b7db3Sskrll const bfd_arch_info_type bfd_alpha_arch = 544f645668Schristos N (64, 64, 0, "alpha", true, NN(0)); 55