Back to index

cell-binutils  2.17cvs20070401
vax.h
Go to the documentation of this file.
00001 /* VAX ELF support for BFD.
00002    Copyright (C) 2002 Free Software Foundation, Inc.
00003    Contributed by Matt Thomas <matt@3am-software.com>.
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_VAX_H
00022 #define _ELF_VAX_H
00023 
00024 #include "elf/reloc-macros.h"
00025 
00026 /* Relocation types.  */
00027 START_RELOC_NUMBERS (elf_vax_reloc_type)
00028   RELOC_NUMBER (R_VAX_NONE, 0)            /* No reloc */
00029   RELOC_NUMBER (R_VAX_32, 1)              /* Direct 32 bit  */
00030   RELOC_NUMBER (R_VAX_16, 2)              /* Direct 16 bit  */
00031   RELOC_NUMBER (R_VAX_8, 3)        /* Direct 8 bit  */
00032   RELOC_NUMBER (R_VAX_PC32, 4)            /* PC relative 32 bit */
00033   RELOC_NUMBER (R_VAX_PC16, 5)            /* PC relative 16 bit */
00034   RELOC_NUMBER (R_VAX_PC8, 6)             /* PC relative 8 bit */
00035   RELOC_NUMBER (R_VAX_GOT32, 7)           /* 32 bit PC relative GOT entry */
00036   RELOC_NUMBER (R_VAX_PLT32, 13)   /* 32 bit PC relative PLT address */
00037   RELOC_NUMBER (R_VAX_COPY, 19)           /* Copy symbol at runtime */
00038   RELOC_NUMBER (R_VAX_GLOB_DAT, 20)       /* Create GOT entry */
00039   RELOC_NUMBER (R_VAX_JMP_SLOT, 21)       /* Create PLT entry */
00040   RELOC_NUMBER (R_VAX_RELATIVE, 22)       /* Adjust by program base */
00041   /* These are GNU extensions to enable C++ vtable garbage collection.  */
00042   RELOC_NUMBER (R_VAX_GNU_VTINHERIT, 23)
00043   RELOC_NUMBER (R_VAX_GNU_VTENTRY, 24)
00044 END_RELOC_NUMBERS (R_VAX_max)   
00045 
00046 /* Processor specific flags for the ELF header e_flags field.  */
00047 #define EF_VAX_NONPIC              0x0001 /* Object contains non-PIC code */
00048 #define EF_VAX_DFLOAT              0x0100 /* Object contains D-Float insn.  */
00049 #define EF_VAX_GFLOAT              0x0200 /* Object contains G-Float insn.  */
00050 
00051 #endif