Back to index

cell-binutils  2.17cvs20070401
crx.h
Go to the documentation of this file.
00001 /* CRX ELF support for BFD.
00002    Copyright 2004 Free Software Foundation, Inc.
00003    Contributed by Tomer Levi, NSC, Israel.
00004    Originally written for GAS 2.12 by Tomer Levi, NSC, Israel.
00005    Updates, BFDizing, GNUifying and ELF support by Tomer Levi.
00006 
00007    This file is part of BFD, the Binary File Descriptor library.
00008 
00009    This program is free software; you can redistribute it and/or modify
00010    it under the terms of the GNU General Public License as published by
00011    the Free Software Foundation; either version 2 of the License, or
00012    (at your option) any later version.
00013 
00014    This program is distributed in the hope that it will be useful,
00015    but WITHOUT ANY WARRANTY; without even the implied warranty of
00016    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017    GNU General Public License for more details.
00018 
00019    You should have received a copy of the GNU General Public License
00020    along with this program; if not, write to the Free Software Foundation,
00021    Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
00022 
00023 #ifndef _ELF_CRX_H
00024 #define _ELF_CRX_H
00025 
00026 #include "elf/reloc-macros.h"
00027 
00028 /* Creating indices for reloc_map_index array.  */
00029 START_RELOC_NUMBERS(elf_crx_reloc_type)
00030   RELOC_NUMBER (R_CRX_NONE,           0)
00031   RELOC_NUMBER (R_CRX_REL4,           1)
00032   RELOC_NUMBER (R_CRX_REL8,           2)
00033   RELOC_NUMBER (R_CRX_REL8_CMP,       3)
00034   RELOC_NUMBER (R_CRX_REL16,          4)
00035   RELOC_NUMBER (R_CRX_REL24,          5)
00036   RELOC_NUMBER (R_CRX_REL32,          6)
00037   RELOC_NUMBER (R_CRX_REGREL12,       7)
00038   RELOC_NUMBER (R_CRX_REGREL22,       8)
00039   RELOC_NUMBER (R_CRX_REGREL28,       9)
00040   RELOC_NUMBER (R_CRX_REGREL32,       10)
00041   RELOC_NUMBER (R_CRX_ABS16,          11)
00042   RELOC_NUMBER (R_CRX_ABS32,          12)
00043   RELOC_NUMBER (R_CRX_NUM8,       13)
00044   RELOC_NUMBER (R_CRX_NUM16,          14)
00045   RELOC_NUMBER (R_CRX_NUM32,          15)
00046   RELOC_NUMBER (R_CRX_IMM16,             16)
00047   RELOC_NUMBER (R_CRX_IMM32,             17)
00048   RELOC_NUMBER (R_CRX_SWITCH8,           18)
00049   RELOC_NUMBER (R_CRX_SWITCH16,          19)
00050   RELOC_NUMBER (R_CRX_SWITCH32,          20)
00051 END_RELOC_NUMBERS(R_CRX_MAX)
00052        
00053 #endif /* _ELF_CRX_H */