Back to index

cell-binutils  2.17cvs20070401
mt.h
Go to the documentation of this file.
00001 /* MS1  ELF support for BFD.
00002    Copyright (C) 2000, 2005 Free Software Foundation, Inc.
00003 
00004 This file is part of BFD, the Binary File Descriptor library.
00005 
00006 This program is free software; you can redistribute it and/or modify
00007 it under the terms of the GNU General Public License as published by
00008 the Free Software Foundation; either version 2 of the License, or
00009 (at your option) any later version.
00010 
00011 This program is distributed in the hope that it will be useful,
00012 but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014 GNU General Public License for more details.
00015 
00016 You should have received a copy of the GNU General Public License
00017 along with this program; if not, write to the Free Software Foundation, Inc.,
00018 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
00019 
00020 #ifndef _ELF_MT_H
00021 #define _ELF_MT_H
00022 
00023 #include "elf/reloc-macros.h"
00024 
00025 /* Relocations.  */
00026 START_RELOC_NUMBERS (elf_mt_reloc_type)
00027   RELOC_NUMBER (R_MT_NONE, 0)
00028   RELOC_NUMBER (R_MT_16, 1)
00029   RELOC_NUMBER (R_MT_32, 2)
00030   RELOC_NUMBER (R_MT_32_PCREL, 3)
00031   RELOC_NUMBER (R_MT_PC16, 4)
00032   RELOC_NUMBER (R_MT_HI16, 5)
00033   RELOC_NUMBER (R_MT_LO16, 6)
00034 END_RELOC_NUMBERS(R_MT_max)
00035 
00036 #define EF_MT_CPU_MRISC            0x00000001    /* default */
00037 #define EF_MT_CPU_MRISC2    0x00000002    /* MRISC2 */
00038 #define EF_MT_CPU_MS2              0x00000003      /* MS2 */
00039 #define EF_MT_CPU_MASK             0x00000003    /* specific cpu bits */
00040 #define EF_MT_ALL_FLAGS            (EF_MT_CPU_MASK)
00041 
00042 /* The location of the memory mapped hardware stack.  */
00043 #define MT_STACK_VALUE 0x0f000000
00044 #define MT_STACK_SIZE  0x20
00045 
00046 #endif /* _ELF_MT_H */