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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-6.8/] [bfd/] [liboasys.h] - Diff between revs 827 and 840

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

Rev 827 Rev 840
/* BFD internal declarations for Oasys file format handling.
/* BFD internal declarations for Oasys file format handling.
   Copyright 1990, 1991, 1992, 1993, 1994, 1997, 2002, 2005, 2007
   Copyright 1990, 1991, 1992, 1993, 1994, 1997, 2002, 2005, 2007
   Free Software Foundation, Inc.
   Free Software Foundation, Inc.
   Scrawled by Steve Chamberlain of Cygnus Support.
   Scrawled by Steve Chamberlain of Cygnus Support.
 
 
   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.  */
 
 
typedef struct _oasys_symbol
typedef struct _oasys_symbol
{
{
  asymbol symbol;
  asymbol symbol;
} oasys_symbol_type;
} oasys_symbol_type;
 
 
typedef struct _oasys_reloc {
typedef struct _oasys_reloc {
  arelent relent;
  arelent relent;
  struct _oasys_reloc *next;
  struct _oasys_reloc *next;
  unsigned int symbol;
  unsigned int symbol;
} oasys_reloc_type;
} oasys_reloc_type;
 
 
 
 
#define oasys_symbol(x) ((oasys_symbol_type *)(x))
#define oasys_symbol(x) ((oasys_symbol_type *)(x))
#define oasys_per_section(x) ((oasys_per_section_type *)(x->used_by_bfd))
#define oasys_per_section(x) ((oasys_per_section_type *)(x->used_by_bfd))
 
 
typedef struct _oasys_per_section
typedef struct _oasys_per_section
{
{
  asection *section;
  asection *section;
  bfd_byte *data;
  bfd_byte *data;
  bfd_vma offset;
  bfd_vma offset;
  bfd_boolean had_vma;
  bfd_boolean had_vma;
  oasys_reloc_type **reloc_tail_ptr;
  oasys_reloc_type **reloc_tail_ptr;
  bfd_vma pc;
  bfd_vma pc;
 
 
 
 
  file_ptr current_pos;
  file_ptr current_pos;
  unsigned int current_byte;
  unsigned int current_byte;
  bfd_boolean initialized;
  bfd_boolean initialized;
} oasys_per_section_type;
} oasys_per_section_type;
 
 
#define NSECTIONS 10
#define NSECTIONS 10
 
 
typedef struct _oasys_ar_obstack {
typedef struct _oasys_ar_obstack {
  file_ptr file_offset;
  file_ptr file_offset;
  bfd *abfd;
  bfd *abfd;
} oasys_ar_obstack_type;
} oasys_ar_obstack_type;
 
 
 
 
typedef struct _oasys_module_info {
typedef struct _oasys_module_info {
  file_ptr pos;
  file_ptr pos;
  unsigned int size;
  unsigned int size;
  bfd *abfd;
  bfd *abfd;
  char *name;
  char *name;
} oasys_module_info_type;
} oasys_module_info_type;
 
 
typedef struct _oasys_ar_data {
typedef struct _oasys_ar_data {
  oasys_module_info_type *module;
  oasys_module_info_type *module;
  unsigned int module_count;
  unsigned int module_count;
  unsigned int module_index;
  unsigned int module_index;
} oasys_ar_data_type;
} oasys_ar_data_type;
 
 
typedef struct _oasys_data {
typedef struct _oasys_data {
  char *strings;
  char *strings;
  asymbol *symbols;
  asymbol *symbols;
  unsigned int symbol_string_length;
  unsigned int symbol_string_length;
  asection *sections[OASYS_MAX_SEC_COUNT];
  asection *sections[OASYS_MAX_SEC_COUNT];
  file_ptr first_data_record;
  file_ptr first_data_record;
} oasys_data_type;
} oasys_data_type;
 
 
#define OASYS_DATA(abfd)        ((abfd)->tdata.oasys_obj_data)
#define OASYS_DATA(abfd)        ((abfd)->tdata.oasys_obj_data)
#define OASYS_AR_DATA(abfd)     ((abfd)->tdata.oasys_ar_data)
#define OASYS_AR_DATA(abfd)     ((abfd)->tdata.oasys_ar_data)
 
 
 
 

powered by: WebSVN 2.1.0

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