Back to index

cell-binutils  2.17cvs20070401
i860.h
Go to the documentation of this file.
00001 /* i860 ELF support for BFD.
00002    Copyright 2000 Free Software Foundation, Inc.
00003 
00004    Contributed by Jason Eckhardt <jle@cygnus.com>.
00005 
00006    This file is part of BFD, the Binary File Descriptor library.
00007 
00008    This program is free software; you can redistribute it and/or modify
00009    it under the terms of the GNU General Public License as published by
00010    the Free Software Foundation; either version 2 of the License, or
00011    (at your option) any later version.
00012 
00013    This program is distributed in the hope that it will be useful,
00014    but WITHOUT ANY WARRANTY; without even the implied warranty of
00015    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016    GNU General Public License for more details.
00017 
00018    You should have received a copy of the GNU General Public License
00019    along with this program; if not, write to the Free Software Foundation,
00020    Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
00021 
00022 #ifndef _ELF_I860_H
00023 #define _ELF_I860_H
00024 
00025 /* Note: i860 ELF is defined to use only RELA relocations.  */
00026 
00027 #include "elf/reloc-macros.h"
00028 
00029 START_RELOC_NUMBERS (elf_i860_reloc_type)
00030      RELOC_NUMBER (R_860_NONE,      0x00) /* No reloc */
00031      RELOC_NUMBER (R_860_32,        0x01) /* S+A  */
00032      RELOC_NUMBER (R_860_COPY,         0x02)     /* No calculation */
00033      RELOC_NUMBER (R_860_GLOB_DAT,  0x03) /* S, Create GOT entry */
00034      RELOC_NUMBER (R_860_JUMP_SLOT, 0x04) /* S+A, Create PLT entry */
00035      RELOC_NUMBER (R_860_RELATIVE,  0x05) /* B+A, Adj by program base */
00036      RELOC_NUMBER (R_860_PC26,      0x30) /* (S+A-P) >> 2 */ 
00037      RELOC_NUMBER (R_860_PLT26,        0x31)     /* (L+A-P) >> 2 */
00038      RELOC_NUMBER (R_860_PC16,      0x32) /* (S+A-P) >> 2 */
00039      RELOC_NUMBER (R_860_LOW0,      0x40) /* S+A */
00040      RELOC_NUMBER (R_860_SPLIT0,    0x42) /* S+A */       
00041      RELOC_NUMBER (R_860_LOW1,      0x44) /* S+A */
00042      RELOC_NUMBER (R_860_SPLIT1,    0x46) /* S+A */
00043      RELOC_NUMBER (R_860_LOW2,      0x48) /* S+A */
00044      RELOC_NUMBER (R_860_SPLIT2,    0x4A) /* S+A */
00045      RELOC_NUMBER (R_860_LOW3,      0x4C) /* S+A */
00046      RELOC_NUMBER (R_860_LOGOT0,    0x50) /* G */
00047      RELOC_NUMBER (R_860_SPGOT0,    0x52) /* G */
00048      RELOC_NUMBER (R_860_LOGOT1,    0x54) /* G */
00049      RELOC_NUMBER (R_860_SPGOT1,    0x56) /* G */
00050      RELOC_NUMBER (R_860_LOGOTOFF0, 0x60) /* O */
00051      RELOC_NUMBER (R_860_SPGOTOFF0, 0x62) /* O */
00052      RELOC_NUMBER (R_860_LOGOTOFF1, 0x64) /* O */
00053      RELOC_NUMBER (R_860_SPGOTOFF1, 0x66) /* O */
00054      RELOC_NUMBER (R_860_LOGOTOFF2, 0x68) /* O */
00055      RELOC_NUMBER (R_860_LOGOTOFF3, 0x6C) /* O */
00056      RELOC_NUMBER (R_860_LOPC,      0x70) /* (S+A-P) >> 2 */
00057      RELOC_NUMBER (R_860_HIGHADJ,   0x80) /* hiadj(S+A) */
00058      RELOC_NUMBER (R_860_HAGOT,     0x90) /* hiadj(G) */
00059      RELOC_NUMBER (R_860_HAGOTOFF,  0xA0) /* hiadj(O) */
00060      RELOC_NUMBER (R_860_HAPC,      0xB0) /* hiadj((S+A-P) >> 2) */
00061      RELOC_NUMBER (R_860_HIGH,      0xC0) /* (S+A) >> 16 */
00062      RELOC_NUMBER (R_860_HIGOT,     0xD0) /* G >> 16 */
00063      RELOC_NUMBER (R_860_HIGOTOFF,  0xE0) /* O */
00064 END_RELOC_NUMBERS (R_860_max)
00065 
00066 #endif