1f7cc78ecSespie /* BFD back-end for NetBSD/ARM a.out-ish binaries. 2*d2201f2fSdrahn Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc. 3f7cc78ecSespie 4f7cc78ecSespie This file is part of BFD, the Binary File Descriptor library. 5f7cc78ecSespie 6f7cc78ecSespie This program is free software; you can redistribute it and/or modify 7f7cc78ecSespie it under the terms of the GNU General Public License as published by 8f7cc78ecSespie the Free Software Foundation; either version 2 of the License, or 9f7cc78ecSespie (at your option) any later version. 10f7cc78ecSespie 11f7cc78ecSespie This program is distributed in the hope that it will be useful, 12f7cc78ecSespie but WITHOUT ANY WARRANTY; without even the implied warranty of 13f7cc78ecSespie MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14f7cc78ecSespie GNU General Public License for more details. 15f7cc78ecSespie 16f7cc78ecSespie You should have received a copy of the GNU General Public License 17f7cc78ecSespie along with this program; if not, write to the Free Software 18f7cc78ecSespie Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ 19f7cc78ecSespie 20f7cc78ecSespie #define BYTES_IN_WORD 4 21f7cc78ecSespie #undef TARGET_IS_BIG_ENDIAN_P 22f7cc78ecSespie 23f7cc78ecSespie #define TARGET_PAGE_SIZE 4096 24f7cc78ecSespie #define SEGMENT_SIZE TARGET_PAGE_SIZE 25f7cc78ecSespie 26f7cc78ecSespie #define DEFAULT_ARCH bfd_arch_arm 27f7cc78ecSespie #define DEFAULT_MID M_ARM6_NETBSD 28f7cc78ecSespie /*#define MACHTYPE_OK(mtype) ((mtype) == M_ARM6_NETBSD)*/ 29f7cc78ecSespie 30*d2201f2fSdrahn /* Do not "beautify" the CONCAT* macro args. Traditional C will not 31*d2201f2fSdrahn remove whitespace added here, and thus will fail to concatenate 32*d2201f2fSdrahn the tokens. */ 33*d2201f2fSdrahn #define MY(OP) CONCAT2 (armnetbsd_, OP) 34*d2201f2fSdrahn 35f7cc78ecSespie /* This needs to start with a.out so GDB knows it is an a.out variant. */ 36f7cc78ecSespie #define TARGETNAME "a.out-arm-netbsd" 37f7cc78ecSespie 38f7cc78ecSespie #if 0 39*d2201f2fSdrahn #define NAME(x,y) CONCAT3 (aoutarm,_32_,y) 40f7cc78ecSespie 41f7cc78ecSespie #define aoutarm_32_get_section_contents aout_32_get_section_contents 42f7cc78ecSespie 43f7cc78ecSespie #define MY_bfd_reloc_type_lookup aoutarm_bfd_reloc_type_lookup 44f7cc78ecSespie 45f7cc78ecSespie #include "bfd.h" /* To ensure following declaration is OK */ 46f7cc78ecSespie 47*d2201f2fSdrahn const struct reloc_howto_struct * 48f7cc78ecSespie MY_bfd_reloc_type_lookup 49f7cc78ecSespie PARAMS ((bfd * abfd AND 50f7cc78ecSespie bfd_reloc_code_real_type code)); 51f7cc78ecSespie #endif 52f7cc78ecSespie 53f7cc78ecSespie #include "netbsd.h" 54