TIC4X testcase commit
[deliverable/binutils-gdb.git] / gas / write.h
index 7cadec5c7160406f1f22ab50ca47e37f2899dba2..962ccd0fb10bc939c6ff53fbdafcafe406cec846 100644 (file)
@@ -1,5 +1,6 @@
 /* write.h
-   Copyright (C) 1987, 92, 93, 94, 95, 96, 1997 Free Software Foundation, Inc.
+   Copyright 1987, 1992, 1993, 1994, 1995, 1996, 1997, 1999, 2000, 2001
+   Free Software Foundation, Inc.
 
    This file is part of GAS, the GNU Assembler.
 
@@ -18,6 +19,9 @@
    Software Foundation, 59 Temple Place - Suite 330, Boston, MA
    02111-1307, USA.  */
 
+#ifndef __write_h__
+#define __write_h__
+
 #ifndef TC_I960
 #ifdef hpux
 #define EXEC_MACHINE_TYPE HP9000S200_ID
@@ -49,7 +53,7 @@ struct fix
   /* These small fields are grouped together for compactness of
      this structure, and efficiency of access on some architectures.  */
 
-  /* pc-relative offset adjust */
+  /* pc-relative offset adjust (only used by m68k) */
   char fx_pcrel_adjust;
 
   /* How many bytes are involved? */
@@ -92,15 +96,18 @@ struct fix
   /* Where is the first byte to fix up?  */
   long fx_where;
 
-  /* NULL or Symbol whose value we add in. */
+  /* NULL or Symbol whose value we add in.  */
   symbolS *fx_addsy;
 
-  /* NULL or Symbol whose value we subtract. */
+  /* NULL or Symbol whose value we subtract.  */
   symbolS *fx_subsy;
 
-  /* Absolute number we add in. */
+  /* Absolute number we add in.  */
   valueT fx_offset;
 
+  /* The value of dot when the fixup expression was parsed.  */
+  addressT fx_dot_value;
+
   /* Next fixS in linked list, or NULL.  */
   struct fix *fx_next;
 
@@ -135,6 +142,15 @@ struct fix
   char *fx_file;
   unsigned fx_line;
 
+#ifdef USING_CGEN
+  struct {
+    /* CGEN_INSN entry for this instruction.  */
+    const struct cgen_insn *insn;
+    /* Target specific data, usually reloc number.  */
+    int opinfo;
+  } fx_cgen;
+#endif
+
 #ifdef TC_FIX_TYPE
   /* Location where a backend can attach additional data
      needed to perform fixups.  */
@@ -144,17 +160,21 @@ struct fix
 
 typedef struct fix fixS;
 
+extern int finalize_syms;
+extern symbolS *abs_section_sym;
+extern addressT dot_value;
+
 #ifndef BFD_ASSEMBLER
 extern char *next_object_file_charP;
 
 #ifndef MANY_SEGMENTS
-COMMON fixS *text_fix_root, *text_fix_tail;    /* Chains fixSs. */
-COMMON fixS *data_fix_root, *data_fix_tail;    /* Chains fixSs. */
-COMMON fixS *bss_fix_root, *bss_fix_tail;      /* Chains fixSs. */
-extern struct frag *text_last_frag;            /* Last frag in segment. */
-extern struct frag *data_last_frag;            /* Last frag in segment. */
+COMMON fixS *text_fix_root, *text_fix_tail;    /* Chains fixSs.  */
+COMMON fixS *data_fix_root, *data_fix_tail;    /* Chains fixSs.  */
+COMMON fixS *bss_fix_root, *bss_fix_tail;      /* Chains fixSs.  */
+extern struct frag *text_last_frag;            /* Last frag in segment.  */
+extern struct frag *data_last_frag;            /* Last frag in segment.  */
 #endif
-COMMON fixS **seg_fix_rootP, **seg_fix_tailP;  /* -> one of above. */
+COMMON fixS **seg_fix_rootP, **seg_fix_tailP;  /* -> one of above.  */
 #endif
 
 extern long string_byte_count;
@@ -165,10 +185,11 @@ extern bit_fixS *bit_fix_new
           long max, long add));
 extern void append PARAMS ((char **charPP, char *fromP, unsigned long length));
 extern void record_alignment PARAMS ((segT seg, int align));
+extern int get_recorded_alignment PARAMS ((segT seg));
 extern void subsegs_finish PARAMS ((void));
 extern void write_object_file PARAMS ((void));
-extern long relax_frag PARAMS ((fragS *, long));
-extern void relax_segment
+extern long relax_frag PARAMS ((segT, fragS *, long));
+extern int relax_segment
   PARAMS ((struct frag * seg_frag_root, segT seg_type));
 
 extern void number_to_chars_littleendian PARAMS ((char *, valueT, int));
@@ -192,4 +213,4 @@ extern fixS *fix_new_exp
 
 extern void write_print_statistics PARAMS ((FILE *));
 
-/* end of write.h */
+#endif /* __write_h__ */
This page took 0.025273 seconds and 4 git commands to generate.