Lint
authorSteve Chamberlain <steve@cygnus>
Wed, 8 May 1991 19:23:35 +0000 (19:23 +0000)
committerSteve Chamberlain <steve@cygnus>
Wed, 8 May 1991 19:23:35 +0000 (19:23 +0000)
bfd/libbfd.h
bfd/libieee.h
ld/ldlang.c

index 0c84796..ad75ac2 100644 (file)
@@ -102,7 +102,7 @@ PROTO (void, _do_putlshort, (int data, unsigned char *addr));
 
 PROTO (boolean, bfd_false, (bfd *ignore));
 PROTO (boolean, bfd_true, (bfd *ignore));
-PROTO (void *, bfd_nullvoidptr, (bfd *ignore));
+PROTO (PTR, bfd_nullvoidptr, (bfd *ignore));
 PROTO (int, bfd_0, (bfd *ignore));
 PROTO (unsigned int, bfd_0u, (bfd *ignore));
 PROTO (void, bfd_void, (bfd *ignore));
index 8d5679d..59e07e4 100644 (file)
@@ -38,41 +38,40 @@ typedef struct ieee_per_section
 
   
 
-typedef struct {
+typedef struct 
+{
   boolean read_symbols;
   boolean read_data;   
-unsigned  char *input_p;
-unsigned char *first_byte;
+  unsigned  char *input_p;
+  unsigned char *first_byte;
   file_ptr output_cursor;
   /* Map of section indexes to section ptrs */
   asection * section_table[NSECTIONS];
   ieee_address_descriptor_type ad;
   ieee_module_begin_type mb;
   ieee_w_variable_type w;
-
+  
   unsigned int section_count;
-  struct obstack ieee_obstack;
-
-
+  
   unsigned int map_idx;
   /* List of GLOBAL EXPORT symbols */
   ieee_symbol_type *external_symbols;
   /* List of UNDEFINED symbols */
   ieee_symbol_type *external_reference;
-
+  
   /* When the symbols have been canonicalized, they are in a
-   * special order, we remember various bases here.. */
+    * special order, we remember various bases here.. */
   unsigned int external_symbol_max_index;
   unsigned int external_symbol_min_index;
   unsigned int external_symbol_count;
   int external_symbol_base_offset;
-
+  
   unsigned int external_reference_max_index;
   unsigned int external_reference_min_index;
   unsigned int external_reference_count;
   int external_reference_base_offset;
-
-
+  
+  bfd *abfd;
   boolean symbol_table_full;
 } ieee_data_type;
 
index 453666d..50bb103 100644 (file)
@@ -506,7 +506,7 @@ DEFUN(init_os,(s),
   /* We initialize an output sections output offset to minus its own */
   /* vma to allow us to output a section through itself */
   s->bfd_section->output_offset = 0;
-  get_userdata( s->bfd_section) = new;
+  get_userdata( s->bfd_section) = (PTR)new;
 }
 
 /***********************************************************************
@@ -1996,7 +1996,7 @@ DEFUN_VOID(lang_process)
   current_target = default_target;
   lang_for_each_statement(open_input_bfds);
 
-  common_section.userdata = &common_section_userdata;
+  common_section.userdata = (PTR)&common_section_userdata;
 
   /* Run through the contours of the script and attatch input sections
      to the correct output sections