arc.h revision 218822
138889Sjdp/* ARC ELF support for BFD. 278828Sobrien Copyright 1995, 1997, 1998, 2000, 2001 Free Software Foundation, Inc. 338889Sjdp Contributed by Doug Evans, (dje@cygnus.com) 438889Sjdp 538889SjdpThis file is part of BFD, the Binary File Descriptor library. 638889Sjdp 738889SjdpThis program is free software; you can redistribute it and/or modify 838889Sjdpit under the terms of the GNU General Public License as published by 938889Sjdpthe Free Software Foundation; either version 2 of the License, or 1038889Sjdp(at your option) any later version. 1138889Sjdp 1238889SjdpThis program is distributed in the hope that it will be useful, 1338889Sjdpbut WITHOUT ANY WARRANTY; without even the implied warranty of 1438889SjdpMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1538889SjdpGNU General Public License for more details. 1638889Sjdp 1738889SjdpYou should have received a copy of the GNU General Public License 1838889Sjdpalong with this program; if not, write to the Free Software 19218822SdimFoundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ 2038889Sjdp 2138889Sjdp/* This file holds definitions specific to the ARC ELF ABI. */ 2238889Sjdp 2338889Sjdp#ifndef _ELF_ARC_H 2438889Sjdp#define _ELF_ARC_H 2538889Sjdp 2660484Sobrien#include "elf/reloc-macros.h" 2738889Sjdp 2860484Sobrien/* Relocations. */ 2977298Sobrien 3060484SobrienSTART_RELOC_NUMBERS (elf_arc_reloc_type) 3160484Sobrien RELOC_NUMBER (R_ARC_NONE, 0) 3260484Sobrien RELOC_NUMBER (R_ARC_32, 1) 3360484Sobrien RELOC_NUMBER (R_ARC_B26, 2) 3460484Sobrien RELOC_NUMBER (R_ARC_B22_PCREL, 3) 3577298SobrienEND_RELOC_NUMBERS (R_ARC_max) 3660484Sobrien 3738889Sjdp/* Processor specific flags for the ELF header e_flags field. */ 3838889Sjdp 3938889Sjdp/* Four bit ARC machine type field. */ 4038889Sjdp 4177298Sobrien#define EF_ARC_MACH 0x0000000f 4277298Sobrien 4338889Sjdp/* Various CPU types. */ 4438889Sjdp 4577298Sobrien#define E_ARC_MACH_ARC5 0 4677298Sobrien#define E_ARC_MACH_ARC6 1 4777298Sobrien#define E_ARC_MACH_ARC7 2 4877298Sobrien#define E_ARC_MACH_ARC8 3 4938889Sjdp 5077298Sobrien/* Leave bits 0xf0 alone in case we ever have more than 16 cpu types. */ 5177298Sobrien 5238889Sjdp/* File contains position independent code. */ 5338889Sjdp 5477298Sobrien#define EF_ARC_PIC 0x00000100 5577298Sobrien 5638889Sjdp#endif /* _ELF_ARC_H */ 57