* libcoff-in.h (struct xcoff_tdata): Define.
[deliverable/binutils-gdb.git] / bfd / libcoff-in.h
index bb690bb5d5bb8af8a66381b220efe37dcdeaa5d8..f8d9d168d18c4b13a098ec22c7b7d4914380a6c0 100644 (file)
@@ -97,6 +97,33 @@ typedef struct pe_tdata
 
 #define pe_data(bfd)           ((bfd)->tdata.pe_obj_data)
 
+/* Tdata for XCOFF files.  */
+
+struct xcoff_tdata
+{
+  /* Basic COFF information.  */
+  coff_data_type coff;
+
+  /* TOC value.  */
+  bfd_vma toc;
+
+  /* .text alignment from optional header.  */
+  int text_align_power;
+
+  /* .data alignment from optional header.  */
+  int data_align_power;
+
+  /* modtype from optional header.  */
+  short modtype;
+
+  /* maxdata from optional header.  */
+  bfd_size_type maxdata;
+
+  /* maxstack from optional header.  */
+  bfd_size_type maxstack;
+};
+
+#define xcoff_data(abfd) ((abfd)->tdata.xcoff_obj_data)
 
 /* We take the address of the first element of a asymbol to ensure that the
  * macro is only ever applied to an asymbol.  */
@@ -115,6 +142,11 @@ struct coff_section_tdata
   bfd_byte *contents;
   /* If this is true, the contents entry may not be freed.  */
   boolean keep_contents;
+  /* Information cached by coff_find_nearest_line.  */
+  bfd_vma offset;
+  unsigned int i;
+  const char *function;
+  int line_base;
   /* Available for individual backends.  */
   PTR tdata;
 };
This page took 0.040682 seconds and 4 git commands to generate.