Back to index

cell-binutils  2.17cvs20070401
msp430.h
Go to the documentation of this file.
00001 /* MSP430 ELF support for BFD.
00002    Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
00003    Contributed by Dmitry Diky <diwil@mail.ru>
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 Foundation, Inc.,
00019    51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
00020 
00021 #ifndef _ELF_MSP430_H
00022 #define _ELF_MSP430_H
00023 
00024 #include "elf/reloc-macros.h"
00025 
00026 /* Processor specific flags for the ELF header e_flags field.  */
00027 #define EF_MSP430_MACH             0xff
00028 
00029 #define E_MSP430_MACH_MSP430x11  11
00030 #define E_MSP430_MACH_MSP430x11x1  110
00031 #define E_MSP430_MACH_MSP430x12  12
00032 #define E_MSP430_MACH_MSP430x13  13
00033 #define E_MSP430_MACH_MSP430x14  14
00034 #define E_MSP430_MACH_MSP430x15  15
00035 #define E_MSP430_MACH_MSP430x16  16
00036 #define E_MSP430_MACH_MSP430x31  31
00037 #define E_MSP430_MACH_MSP430x32  32
00038 #define E_MSP430_MACH_MSP430x33  33
00039 #define E_MSP430_MACH_MSP430x41  41
00040 #define E_MSP430_MACH_MSP430x42  42
00041 #define E_MSP430_MACH_MSP430x43  43
00042 #define E_MSP430_MACH_MSP430x44  44
00043 
00044 /* Relocations.  */
00045 START_RELOC_NUMBERS (elf_msp430_reloc_type)
00046      RELOC_NUMBER (R_MSP430_NONE,         0)
00047      RELOC_NUMBER (R_MSP430_32,                  1)
00048      RELOC_NUMBER (R_MSP430_10_PCREL,            2)
00049      RELOC_NUMBER (R_MSP430_16,           3)
00050      RELOC_NUMBER (R_MSP430_16_PCREL,            4)
00051      RELOC_NUMBER (R_MSP430_16_BYTE,             5)
00052      RELOC_NUMBER (R_MSP430_16_PCREL_BYTE,       6)
00053      RELOC_NUMBER (R_MSP430_2X_PCREL,            7)
00054      RELOC_NUMBER (R_MSP430_RL_PCREL,            8)
00055 
00056 END_RELOC_NUMBERS (R_MSP430_max)
00057 
00058 #endif /* _ELF_MSP430_H */