OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-7.1/] [include/] [aout/] [reloc.h] - Diff between revs 834 and 842

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 834 Rev 842
/* reloc.h -- Header file for relocation information.
/* reloc.h -- Header file for relocation information.
   Copyright 1989, 1990, 1991 Free Software Foundation, Inc.
   Copyright 1989, 1990, 1991 Free Software Foundation, Inc.
 
 
This program is free software; you can redistribute it and/or modify
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
(at your option) any later version.
 
 
This program is distributed in the hope that it will be useful,
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
GNU General Public License for more details.
 
 
You should have received a copy of the GNU General Public License
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
 
 
/* Relocation types for a.out files using reloc_info_extended
/* Relocation types for a.out files using reloc_info_extended
   (SPARC and AMD 29000). */
   (SPARC and AMD 29000). */
 
 
#ifndef _RELOC_H_READ_
#ifndef _RELOC_H_READ_
#define _RELOC_H_READ_ 1
#define _RELOC_H_READ_ 1
 
 
enum reloc_type
enum reloc_type
  {
  {
    RELOC_8,        RELOC_16,        RELOC_32, /* simple relocations */
    RELOC_8,        RELOC_16,        RELOC_32, /* simple relocations */
    RELOC_DISP8,    RELOC_DISP16,    RELOC_DISP32, /* pc-rel displacement */
    RELOC_DISP8,    RELOC_DISP16,    RELOC_DISP32, /* pc-rel displacement */
    RELOC_WDISP30,  RELOC_WDISP22,
    RELOC_WDISP30,  RELOC_WDISP22,
    RELOC_HI22,     RELOC_22,
    RELOC_HI22,     RELOC_22,
    RELOC_13,       RELOC_LO10,
    RELOC_13,       RELOC_LO10,
    RELOC_SFA_BASE, RELOC_SFA_OFF13,
    RELOC_SFA_BASE, RELOC_SFA_OFF13,
    RELOC_BASE10,   RELOC_BASE13,    RELOC_BASE22, /* P.I.C. (base-relative) */
    RELOC_BASE10,   RELOC_BASE13,    RELOC_BASE22, /* P.I.C. (base-relative) */
    RELOC_PC10,     RELOC_PC22, /* for some sort of pc-rel P.I.C. (?) */
    RELOC_PC10,     RELOC_PC22, /* for some sort of pc-rel P.I.C. (?) */
    RELOC_JMP_TBL,              /* P.I.C. jump table */
    RELOC_JMP_TBL,              /* P.I.C. jump table */
    RELOC_SEGOFF16,             /* reputedly for shared libraries somehow */
    RELOC_SEGOFF16,             /* reputedly for shared libraries somehow */
    RELOC_GLOB_DAT,  RELOC_JMP_SLOT, RELOC_RELATIVE,
    RELOC_GLOB_DAT,  RELOC_JMP_SLOT, RELOC_RELATIVE,
    RELOC_11,
    RELOC_11,
    RELOC_WDISP2_14,
    RELOC_WDISP2_14,
    RELOC_WDISP19,
    RELOC_WDISP19,
    RELOC_HHI22,
    RELOC_HHI22,
    RELOC_HLO10,
    RELOC_HLO10,
 
 
    /* 29K relocation types */
    /* 29K relocation types */
    RELOC_JUMPTARG, RELOC_CONST,     RELOC_CONSTH,
    RELOC_JUMPTARG, RELOC_CONST,     RELOC_CONSTH,
 
 
    RELOC_WDISP14, RELOC_WDISP21,
    RELOC_WDISP14, RELOC_WDISP21,
 
 
    NO_RELOC
    NO_RELOC
    };
    };
 
 
#define RELOC_TYPE_NAMES \
#define RELOC_TYPE_NAMES \
"8",            "16",           "32",           "DISP8",        \
"8",            "16",           "32",           "DISP8",        \
"DISP16",       "DISP32",       "WDISP30",      "WDISP22",      \
"DISP16",       "DISP32",       "WDISP30",      "WDISP22",      \
"HI22",         "22",           "13",           "LO10",         \
"HI22",         "22",           "13",           "LO10",         \
"SFA_BASE",     "SFAOFF13",     "BASE10",       "BASE13",       \
"SFA_BASE",     "SFAOFF13",     "BASE10",       "BASE13",       \
"BASE22",       "PC10",         "PC22",         "JMP_TBL",      \
"BASE22",       "PC10",         "PC22",         "JMP_TBL",      \
"SEGOFF16",     "GLOB_DAT",     "JMP_SLOT",     "RELATIVE",     \
"SEGOFF16",     "GLOB_DAT",     "JMP_SLOT",     "RELATIVE",     \
"11",           "WDISP2_14",    "WDISP19",      "HHI22",        \
"11",           "WDISP2_14",    "WDISP19",      "HHI22",        \
"HLO10",                                                        \
"HLO10",                                                        \
"JUMPTARG",     "CONST",        "CONSTH",       "WDISP14",      \
"JUMPTARG",     "CONST",        "CONSTH",       "WDISP14",      \
"WDISP21",      \
"WDISP21",      \
"NO_RELOC"
"NO_RELOC"
 
 
#endif /* _RELOC_H_READ_ */
#endif /* _RELOC_H_READ_ */
 
 
/* end of reloc.h */
/* end of reloc.h */
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.