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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gdb-7.2/] [gdb-7.2-or32-1.0rc3/] [include/] [coff/] [mcore.h] - Diff between revs 330 and 513

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

Rev 330 Rev 513
/* Motorola MCore support for BFD.
/* Motorola MCore support for BFD.
   Copyright 1999, 2000, 2010 Free Software Foundation, Inc.
   Copyright 1999, 2000, 2010 Free Software Foundation, Inc.
 
 
   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 3 of the License, or
   the Free Software Foundation; either version 3 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,
   Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
   MA 02110-1301, USA.  */
   MA 02110-1301, USA.  */
 
 
/* This file holds definitions specific to the MCore COFF/PE ABI. */
/* This file holds definitions specific to the MCore COFF/PE ABI. */
 
 
#ifndef _COFF_MORE_H
#ifndef _COFF_MORE_H
#define _COFF_MORE_H
#define _COFF_MORE_H
 
 
#define INCLUDE_COMDAT_FIELDS_IN_AUXENT
#define INCLUDE_COMDAT_FIELDS_IN_AUXENT
#define L_LNNO_SIZE 2
#define L_LNNO_SIZE 2
#include "coff/external.h"
#include "coff/external.h"
 
 
#define MCOREMAGIC      0xb00  /* I just made this up */ 
#define MCOREMAGIC      0xb00  /* I just made this up */ 
 
 
#define MCOREBADMAG(x) (((x).f_magic != MCOREMAGIC))
#define MCOREBADMAG(x) (((x).f_magic != MCOREMAGIC))
 
 
#define E_DIMNUM        4       /* # array dimensions in auxiliary entry */
#define E_DIMNUM        4       /* # array dimensions in auxiliary entry */
 
 
#define IMAGE_REL_MCORE_ABSOLUTE                0x0000
#define IMAGE_REL_MCORE_ABSOLUTE                0x0000
#define IMAGE_REL_MCORE_ADDR32                  0x0001
#define IMAGE_REL_MCORE_ADDR32                  0x0001
#define IMAGE_REL_MCORE_PCREL_IMM8BY4           0x0002
#define IMAGE_REL_MCORE_PCREL_IMM8BY4           0x0002
#define IMAGE_REL_MCORE_PCREL_IMM11BY2          0x0003
#define IMAGE_REL_MCORE_PCREL_IMM11BY2          0x0003
#define IMAGE_REL_MCORE_PCREL_IMM4BY2           0x0004
#define IMAGE_REL_MCORE_PCREL_IMM4BY2           0x0004
#define IMAGE_REL_MCORE_PCREL_32                0x0005
#define IMAGE_REL_MCORE_PCREL_32                0x0005
#define IMAGE_REL_MCORE_PCREL_JSR_IMM11BY2      0x0006
#define IMAGE_REL_MCORE_PCREL_JSR_IMM11BY2      0x0006
#define IMAGE_REL_MCORE_RVA                     0x0007
#define IMAGE_REL_MCORE_RVA                     0x0007
 
 
#define PEMCORE
#define PEMCORE
 
 
#define OMAGIC          0404    /* object files, eg as output */
#define OMAGIC          0404    /* object files, eg as output */
#define ZMAGIC          0413    /* demand load format, eg normal ld output */
#define ZMAGIC          0413    /* demand load format, eg normal ld output */
#define STMAGIC         0401    /* target shlib */
#define STMAGIC         0401    /* target shlib */
#define SHMAGIC         0443    /* host   shlib */
#define SHMAGIC         0443    /* host   shlib */
 
 
/* From winnt.h */
/* From winnt.h */
#define IMAGE_NT_OPTIONAL_HDR_MAGIC        0x10b
#define IMAGE_NT_OPTIONAL_HDR_MAGIC        0x10b
 
 
/* Define some NT default values. */
/* Define some NT default values. */
#define NT_SECTION_ALIGNMENT 0x1000
#define NT_SECTION_ALIGNMENT 0x1000
#define NT_FILE_ALIGNMENT    0x200  
#define NT_FILE_ALIGNMENT    0x200  
#define NT_DEF_RESERVE       0x100000
#define NT_DEF_RESERVE       0x100000
#define NT_DEF_COMMIT        0x1000
#define NT_DEF_COMMIT        0x1000
 
 
struct external_reloc
struct external_reloc
{
{
  char r_vaddr  [4];
  char r_vaddr  [4];
  char r_symndx [4];
  char r_symndx [4];
  char r_type   [2];
  char r_type   [2];
  char r_offset [4];
  char r_offset [4];
};
};
 
 
#define RELOC struct external_reloc
#define RELOC struct external_reloc
#define RELSZ 14
#define RELSZ 14
 
 
#endif /* __COFF_MCORE_H */
#endif /* __COFF_MCORE_H */
 
 

powered by: WebSVN 2.1.0

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