Back to index

cell-binutils  2.17cvs20070401
xstormy16.h
Go to the documentation of this file.
00001 /* XSTORMY16 ELF support for BFD.
00002    Copyright (C) 2001, 2002 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 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
00019 
00020 #ifndef _ELF_XSTORMY16_H
00021 #define _ELF_XSTORMY16_H
00022 
00023 #include "elf/reloc-macros.h"
00024 
00025 /* Relocations.  */
00026 START_RELOC_NUMBERS (elf_xstormy16_reloc_type)
00027   RELOC_NUMBER (R_XSTORMY16_NONE, 0)
00028 
00029   RELOC_NUMBER (R_XSTORMY16_32, 1)
00030   RELOC_NUMBER (R_XSTORMY16_16, 2)
00031   RELOC_NUMBER (R_XSTORMY16_8, 3)
00032   RELOC_NUMBER (R_XSTORMY16_PC32, 4)
00033   RELOC_NUMBER (R_XSTORMY16_PC16, 5)
00034   RELOC_NUMBER (R_XSTORMY16_PC8, 6)
00035 
00036   RELOC_NUMBER (R_XSTORMY16_REL_12, 7)
00037   RELOC_NUMBER (R_XSTORMY16_24, 8)
00038   RELOC_NUMBER (R_XSTORMY16_FPTR16, 9)
00039 
00040   RELOC_NUMBER (R_XSTORMY16_LO16, 10)
00041   RELOC_NUMBER (R_XSTORMY16_HI16, 11)
00042   RELOC_NUMBER (R_XSTORMY16_12, 12)
00043 
00044   RELOC_NUMBER (R_XSTORMY16_GNU_VTINHERIT, 128)
00045   RELOC_NUMBER (R_XSTORMY16_GNU_VTENTRY, 129)
00046 END_RELOC_NUMBERS (R_XSTORMY16_max)
00047 
00048 /* Define the data & instruction memory discriminator.  In a linked
00049    executable, an symbol should be deemed to point to an instruction
00050    if ((address & XSTORMY16_INSN_MASK) == XSTORMY16_INSN_VALUE), and similarly
00051    for the data space.  See also `ld/emulparams/elf32xstormy16.sh'.  */
00052 #define XSTORMY16_DATA_MASK   0xffc00000
00053 #define XSTORMY16_DATA_VALUE  0x00000000
00054 #define XSTORMY16_INSN_MASK   0xffc00000
00055 #define XSTORMY16_INSN_VALUE  0x00400000
00056 
00057 #endif /* _ELF_XSTORMY16_H */