Back to index

cell-binutils  2.17cvs20070401
pj.h
Go to the documentation of this file.
00001 /* picoJava ELF support for BFD.
00002    Copyright 1999, 2000 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,
00018    Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
00019 
00020 #ifndef _ELF_PJ_H
00021 #define _ELF_PJ_H
00022 
00023 #include "elf/reloc-macros.h"
00024 
00025 /* Relocations.  */
00026 
00027 START_RELOC_NUMBERS (elf_pj_reloc_type)
00028   RELOC_NUMBER (R_PJ_NONE, 0)
00029   RELOC_NUMBER (R_PJ_DATA_DIR32, 1)
00030   RELOC_NUMBER (R_PJ_CODE_REL32, 2)
00031   RELOC_NUMBER (R_PJ_CODE_REL16, 3) 
00032   RELOC_NUMBER (R_PJ_CODE_DIR32, 6)
00033   RELOC_NUMBER (R_PJ_CODE_DIR16, 7)  
00034   RELOC_NUMBER (R_PJ_CODE_LO16, 13)
00035   RELOC_NUMBER (R_PJ_CODE_HI16, 14)
00036   RELOC_NUMBER (R_PJ_GNU_VTINHERIT, 15)
00037   RELOC_NUMBER (R_PJ_GNU_VTENTRY, 16)
00038 END_RELOC_NUMBERS (R_PJ_max)
00039 
00040 #define EF_PICOJAVA_ARCH     0x0000000f
00041 #define EF_PICOJAVA_NEWCALLS 0x00000010
00042 #define EF_PICOJAVA_GNUCALLS 0x00000020  /* The (currently) non standard GNU calling convention */
00043 
00044 #endif