Back to index

cell-binutils  2.17cvs20070401
spu.h
Go to the documentation of this file.
00001 /* SPU ELF support for BFD.
00002 
00003    Copyright 2006 Free Software Foundation, Inc.
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,
00019    Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
00020 
00021 #ifndef _ELF_SPU_H
00022 #define _ELF_SPU_H
00023 
00024 #include "elf/reloc-macros.h"
00025 
00026 /* elf32-spu.c depends on these being consecutive. */
00027 START_RELOC_NUMBERS (elf_spu_reloc_type)
00028      RELOC_NUMBER (R_SPU_NONE,             0)
00029      RELOC_NUMBER (R_SPU_ADDR10,    1)
00030      RELOC_NUMBER (R_SPU_ADDR16,    2)
00031      RELOC_NUMBER (R_SPU_ADDR16_HI,        3)
00032      RELOC_NUMBER (R_SPU_ADDR16_LO,        4)
00033      RELOC_NUMBER (R_SPU_ADDR18,    5)
00034      RELOC_NUMBER (R_SPU_ADDR32,    6)
00035      RELOC_NUMBER (R_SPU_REL16,            7)
00036      RELOC_NUMBER (R_SPU_ADDR7,            8)
00037      RELOC_NUMBER (R_SPU_REL9,             9)
00038      RELOC_NUMBER (R_SPU_REL9I,           10)
00039      RELOC_NUMBER (R_SPU_ADDR10I,  11)
00040      RELOC_NUMBER (R_SPU_ADDR16I,  12)
00041      RELOC_NUMBER (R_SPU_REL32,           13)
00042 END_RELOC_NUMBERS (R_SPU_max)
00043 
00044 /* Program header extensions */
00045 
00046 /* Mark a PT_LOAD segment as containing an overlay which should not
00047    initially be loaded.  */
00048 #define PF_OVERLAY          (1 << 27)
00049 
00050 /* SPU Dynamic Object Information.  */
00051 #define PT_SPU_INFO             0x70000000
00052 
00053 /* SPU plugin information */
00054 #define SPU_PLUGIN_NAME         "SPUNAME"
00055 #define SPU_PTNOTE_SPUNAME  ".note.spu_name"
00056 
00057 #endif /* _ELF_SPU_H */