Back to index

cell-binutils  2.17cvs20070401
arc.h
Go to the documentation of this file.
00001 /* ARC ELF support for BFD.
00002    Copyright 1995, 1997, 1998, 2000, 2001 Free Software Foundation, Inc.
00003    Contributed by Doug Evans, (dje@cygnus.com)
00004 
00005 This file is part of BFD, the Binary File Descriptor library.
00006 
00007 This program is free software; you can redistribute it and/or modify
00008 it under the terms of the GNU General Public License as published by
00009 the Free Software Foundation; either version 2 of the License, or
00010 (at your option) any later version.
00011 
00012 This program is distributed in the hope that it will be useful,
00013 but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015 GNU General Public License for more details.
00016 
00017 You should have received a copy of the GNU General Public License
00018 along with this program; if not, write to the Free Software
00019 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
00020 
00021 /* This file holds definitions specific to the ARC ELF ABI.  */
00022 
00023 #ifndef _ELF_ARC_H
00024 #define _ELF_ARC_H
00025 
00026 #include "elf/reloc-macros.h"
00027 
00028 /* Relocations.  */
00029 
00030 START_RELOC_NUMBERS (elf_arc_reloc_type)
00031   RELOC_NUMBER (R_ARC_NONE, 0)
00032   RELOC_NUMBER (R_ARC_32, 1)
00033   RELOC_NUMBER (R_ARC_B26, 2)
00034   RELOC_NUMBER (R_ARC_B22_PCREL, 3)
00035 END_RELOC_NUMBERS (R_ARC_max)
00036 
00037 /* Processor specific flags for the ELF header e_flags field.  */
00038 
00039 /* Four bit ARC machine type field.  */
00040 
00041 #define EF_ARC_MACH 0x0000000f
00042 
00043 /* Various CPU types.  */
00044 
00045 #define E_ARC_MACH_ARC5 0
00046 #define E_ARC_MACH_ARC6 1   
00047 #define E_ARC_MACH_ARC7 2
00048 #define E_ARC_MACH_ARC8 3
00049 
00050 /* Leave bits 0xf0 alone in case we ever have more than 16 cpu types.  */
00051 
00052 /* File contains position independent code.  */
00053 
00054 #define EF_ARC_PIC 0x00000100
00055 
00056 #endif /* _ELF_ARC_H */