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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.3/] [include/] [elf/] [s390.h] - Diff between revs 1181 and 1765

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

Rev 1181 Rev 1765
/* 390 ELF support for BFD.
/* 390 ELF support for BFD.
   Copyright 2000, 2001 Free Software Foundation, Inc.
   Copyright 2000, 2001 Free Software Foundation, Inc.
   Contributed by Carl B. Pedersen and Martin Schwidefsky.
   Contributed by Carl B. Pedersen and Martin Schwidefsky.
 
 
   This file is part of BFD, the Binary File Descriptor library.
   This file is part of BFD, the Binary File Descriptor library.
 
 
   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., 59 Temple Place - Suite 330, Boston, MA
   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
   02111-1307, USA.  */
   02111-1307, USA.  */
 
 
#ifndef _ELF_390_H
#ifndef _ELF_390_H
#define _ELF_390_H
#define _ELF_390_H
 
 
/* Processor specific flags for the ELF header e_flags field.  */
/* Processor specific flags for the ELF header e_flags field.  */
 
 
/* Symbol types.  */
/* Symbol types.  */
 
 
#define STACK_REG               15              /* Global Stack reg */
#define STACK_REG               15              /* Global Stack reg */
#define BACKL_REG               14              /* Global Backlink reg */
#define BACKL_REG               14              /* Global Backlink reg */
#define BASE_REG                13              /* Global Base reg */
#define BASE_REG                13              /* Global Base reg */
#define GOT_REG                 12              /* Holds addr of GOT */
#define GOT_REG                 12              /* Holds addr of GOT */
 
 
#include "elf/reloc-macros.h"
#include "elf/reloc-macros.h"
 
 
/* Relocation types.  */
/* Relocation types.  */
 
 
START_RELOC_NUMBERS (elf_s390_reloc_type)
START_RELOC_NUMBERS (elf_s390_reloc_type)
    RELOC_NUMBER (R_390_NONE, 0) /* No reloc.  */
    RELOC_NUMBER (R_390_NONE, 0) /* No reloc.  */
    RELOC_NUMBER (R_390_8, 1)           /* Direct 8 bit.  */
    RELOC_NUMBER (R_390_8, 1)           /* Direct 8 bit.  */
    RELOC_NUMBER (R_390_12, 2)          /* Direct 12 bit.  */
    RELOC_NUMBER (R_390_12, 2)          /* Direct 12 bit.  */
    RELOC_NUMBER (R_390_16, 3)          /* Direct 16 bit.  */
    RELOC_NUMBER (R_390_16, 3)          /* Direct 16 bit.  */
    RELOC_NUMBER (R_390_32, 4)          /* Direct 32 bit.  */
    RELOC_NUMBER (R_390_32, 4)          /* Direct 32 bit.  */
    RELOC_NUMBER (R_390_PC32, 5)        /* PC relative 32 bit.  */
    RELOC_NUMBER (R_390_PC32, 5)        /* PC relative 32 bit.  */
    RELOC_NUMBER (R_390_GOT12, 6)       /* 12 bit GOT offset.  */
    RELOC_NUMBER (R_390_GOT12, 6)       /* 12 bit GOT offset.  */
    RELOC_NUMBER (R_390_GOT32, 7)       /* 32 bit GOT offset.  */
    RELOC_NUMBER (R_390_GOT32, 7)       /* 32 bit GOT offset.  */
    RELOC_NUMBER (R_390_PLT32, 8)       /* 32 bit PC relative PLT address.  */
    RELOC_NUMBER (R_390_PLT32, 8)       /* 32 bit PC relative PLT address.  */
    RELOC_NUMBER (R_390_COPY, 9)        /* Copy symbol at runtime.  */
    RELOC_NUMBER (R_390_COPY, 9)        /* Copy symbol at runtime.  */
    RELOC_NUMBER (R_390_GLOB_DAT, 10)   /* Create GOT entry.  */
    RELOC_NUMBER (R_390_GLOB_DAT, 10)   /* Create GOT entry.  */
    RELOC_NUMBER (R_390_JMP_SLOT, 11)   /* Create PLT entry.  */
    RELOC_NUMBER (R_390_JMP_SLOT, 11)   /* Create PLT entry.  */
    RELOC_NUMBER (R_390_RELATIVE, 12)   /* Adjust by program base.  */
    RELOC_NUMBER (R_390_RELATIVE, 12)   /* Adjust by program base.  */
    RELOC_NUMBER (R_390_GOTOFF, 13)     /* 32 bit offset to GOT.  */
    RELOC_NUMBER (R_390_GOTOFF, 13)     /* 32 bit offset to GOT.  */
    RELOC_NUMBER (R_390_GOTPC, 14)      /* 32 bit PC relative offset to GOT.  */
    RELOC_NUMBER (R_390_GOTPC, 14)      /* 32 bit PC relative offset to GOT.  */
    RELOC_NUMBER (R_390_GOT16, 15)      /* 16 bit GOT offset.  */
    RELOC_NUMBER (R_390_GOT16, 15)      /* 16 bit GOT offset.  */
    RELOC_NUMBER (R_390_PC16, 16)       /* PC relative 16 bit.  */
    RELOC_NUMBER (R_390_PC16, 16)       /* PC relative 16 bit.  */
    RELOC_NUMBER (R_390_PC16DBL, 17)    /* PC relative 16 bit shifted by 1.  */
    RELOC_NUMBER (R_390_PC16DBL, 17)    /* PC relative 16 bit shifted by 1.  */
    RELOC_NUMBER (R_390_PLT16DBL, 18)   /* 16 bit PC rel. PLT shifted by 1.  */
    RELOC_NUMBER (R_390_PLT16DBL, 18)   /* 16 bit PC rel. PLT shifted by 1.  */
    RELOC_NUMBER (R_390_PC32DBL, 19)    /* PC relative 32 bit shifted by 1.  */
    RELOC_NUMBER (R_390_PC32DBL, 19)    /* PC relative 32 bit shifted by 1.  */
    RELOC_NUMBER (R_390_PLT32DBL, 20)   /* 32 bit PC rel. PLT shifted by 1.  */
    RELOC_NUMBER (R_390_PLT32DBL, 20)   /* 32 bit PC rel. PLT shifted by 1.  */
    RELOC_NUMBER (R_390_GOTPCDBL, 21)   /* 32 bit PC rel. GOT shifted by 1.  */
    RELOC_NUMBER (R_390_GOTPCDBL, 21)   /* 32 bit PC rel. GOT shifted by 1.  */
    RELOC_NUMBER (R_390_64, 22)         /* Direct 64 bit.  */
    RELOC_NUMBER (R_390_64, 22)         /* Direct 64 bit.  */
    RELOC_NUMBER (R_390_PC64, 23)       /* PC relative 64 bit.  */
    RELOC_NUMBER (R_390_PC64, 23)       /* PC relative 64 bit.  */
    RELOC_NUMBER (R_390_GOT64, 24)      /* 64 bit GOT offset.  */
    RELOC_NUMBER (R_390_GOT64, 24)      /* 64 bit GOT offset.  */
    RELOC_NUMBER (R_390_PLT64, 25)      /* 64 bit PC relative PLT address.  */
    RELOC_NUMBER (R_390_PLT64, 25)      /* 64 bit PC relative PLT address.  */
    RELOC_NUMBER (R_390_GOTENT, 26)     /* 32 bit PC rel. to GOT entry >> 1. */
    RELOC_NUMBER (R_390_GOTENT, 26)     /* 32 bit PC rel. to GOT entry >> 1. */
    /* These are GNU extensions to enable C++ vtable garbage collection.  */
    /* These are GNU extensions to enable C++ vtable garbage collection.  */
    RELOC_NUMBER (R_390_GNU_VTINHERIT, 250)
    RELOC_NUMBER (R_390_GNU_VTINHERIT, 250)
    RELOC_NUMBER (R_390_GNU_VTENTRY, 251)
    RELOC_NUMBER (R_390_GNU_VTENTRY, 251)
END_RELOC_NUMBERS (R_390_max)
END_RELOC_NUMBERS (R_390_max)
 
 
#endif /* _ELF_390_H */
#endif /* _ELF_390_H */
 
 
 
 
 
 

powered by: WebSVN 2.1.0

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