Improve gas error messages for invalid instructions.
[deliverable/binutils-gdb.git] / bfd / liboasys.h
index 59e4a89401121e3f5de9bdfa5755e2f363355809..7f7ea59b5a7b188d8e6de6b922ac9fdcb7c14acd 100644 (file)
@@ -1,28 +1,48 @@
+/* BFD internal declarations for Oasys file format handling.
+   Copyright (C) 1990, 91, 92, 93, 94, 95, 1997 Free Software Foundation, Inc.
+   Scrawled by Steve Chamberlain of Cygnus Support.
 
+This file is part of BFD, the Binary File Descriptor library.
 
-typedef struct {
+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
+the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
+
+typedef struct _oasys_symbol
+{
   asymbol symbol;
 } oasys_symbol_type;
 
-typedef struct oasys_reloc_struct {
+typedef struct _oasys_reloc {
   arelent relent;
-  struct oasys_reloc_struct *next;
+  struct _oasys_reloc *next;
   unsigned int symbol;
 } oasys_reloc_type;
 
 
 #define oasys_symbol(x) ((oasys_symbol_type *)(x))
 #define oasys_per_section(x) ((oasys_per_section_type *)(x->used_by_bfd))
-typedef struct oasys_per_section_struct
+
+typedef struct _oasys_per_section
 {
   asection *section;
   bfd_byte *data;
   bfd_vma offset;
-
+  boolean had_vma;
   oasys_reloc_type **reloc_tail_ptr;
   bfd_vma pc;
-  /* For output */
-  struct obstack reloc_obstack;
+
+
   file_ptr current_pos;
   unsigned int current_byte;
   boolean initialized;
@@ -30,32 +50,26 @@ typedef struct oasys_per_section_struct
 
 #define NSECTIONS 10
 
-  
-
-
-
-typedef struct {
+typedef struct _oasys_ar_obstack {
   file_ptr file_offset;
   bfd *abfd;
 } oasys_ar_obstack_type;
 
 
-typedef struct {
+typedef struct _oasys_module_info {
   file_ptr pos;
   unsigned int size;
   bfd *abfd;
-char *name;
-
+  char *name;
 } oasys_module_info_type;
 
-typedef struct {
+typedef struct _oasys_ar_data {
   oasys_module_info_type *module;
   unsigned int module_count;
   unsigned int module_index;
 } oasys_ar_data_type;
 
-typedef struct {
-
+typedef struct _oasys_data {
   char *strings;
   asymbol *symbols;
   unsigned int symbol_string_length;
@@ -63,8 +77,6 @@ typedef struct {
   file_ptr first_data_record;
 } oasys_data_type;
 
-#define oasys_data(abfd) ((oasys_data_type *)((abfd)->tdata))
-#define oasys_ar_data(abfd) ((oasys_ar_data_type *)((abfd)->tdata))
-
-
+#define OASYS_DATA(abfd)       ((abfd)->tdata.oasys_obj_data)
+#define OASYS_AR_DATA(abfd)    ((abfd)->tdata.oasys_ar_data)
 
This page took 0.027197 seconds and 4 git commands to generate.