Back to index

cell-binutils  2.17cvs20070401
or32.h
Go to the documentation of this file.
00001 /* OR1K ELF support for BFD. Derived from ppc.h.
00002    Copyright (C) 2002 Free Software Foundation, Inc.
00003    Contributed by Ivan Guzvinec  <ivang@opencores.org>
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
00019    Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
00020 
00021 #ifndef _ELF_OR1K_H
00022 #define _ELF_OR1K_H
00023 
00024 #include "elf/reloc-macros.h"
00025 
00026 /* Relocations.  */
00027 START_RELOC_NUMBERS (elf_or32_reloc_type)
00028   RELOC_NUMBER (R_OR32_NONE, 0)
00029   RELOC_NUMBER (R_OR32_32, 1)
00030   RELOC_NUMBER (R_OR32_16, 2)
00031   RELOC_NUMBER (R_OR32_8, 3)
00032   RELOC_NUMBER (R_OR32_CONST, 4)
00033   RELOC_NUMBER (R_OR32_CONSTH, 5)
00034   RELOC_NUMBER (R_OR32_JUMPTARG, 6)
00035   RELOC_NUMBER (R_OR32_GNU_VTENTRY, 7)
00036   RELOC_NUMBER (R_OR32_GNU_VTINHERIT, 8)
00037 END_RELOC_NUMBERS (R_OR32_max)
00038 
00039 /* Four bit OR32 machine type field.  */
00040 #define EF_OR32_MACH             0x0000000f
00041 
00042 /* Various CPU types.  */
00043 #define E_OR32_MACH_BASE         0x00000000
00044 #define E_OR32_MACH_UNUSED1      0x00000001
00045 #define E_OR32_MACH_UNUSED2      0x00000002
00046 #define E_OR32_MACH_UNUSED4      0x00000003
00047 
00048 /* Processor specific section headers, sh_type field */
00049 #define SHT_ORDERED         SHT_HIPROC    /* Link editor is to sort the \
00050                                              entries in this section \
00051                                              based on the address \
00052                                              specified in the associated \
00053                                              symbol table entry.  */
00054 
00055 /* Processor specific section flags, sh_flags field */
00056 #define SHF_EXCLUDE         0x80000000    /* Link editor is to exclude \
00057                                              this section from executable \
00058                                              and shared objects that it \
00059                                              builds when those objects \
00060                                              are not to be furhter \
00061                                              relocated.  */
00062 #endif /* _ELF_OR1K_H */