* cofflink.c (_bfd_coff_generic_relocate_section): Cast base_file
authorIan Lance Taylor <ian@airs.com>
Sun, 2 Jul 1995 21:51:36 +0000 (21:51 +0000)
committerIan Lance Taylor <ian@airs.com>
Sun, 2 Jul 1995 21:51:36 +0000 (21:51 +0000)
to FILE * before using it.
* stab-syms.c: Revert yesterday's patch.

bfd/ChangeLog
bfd/cofflink.c
bfd/stab-syms.c

index edf6e33b040f7cdd8b39b082be03049f22742055..db2a40754fb64752fb52bc5296fbab8b6848cb4d 100644 (file)
@@ -1,3 +1,9 @@
+Sun Jul  2 17:49:32 1995  Ian Lance Taylor  <ian@cygnus.com>
+
+       * cofflink.c (_bfd_coff_generic_relocate_section): Cast base_file
+       to FILE * before using it.
+       * stab-syms.c: Revert yesterday's patch.
+
 Sat Jul  1 12:10:42 1995  Fred Fish  <fnf@cygnus.com>
 
        * stab-syms.c (stdio.h):  Include prior to libaout.h, which
index 061dc5b4d892b64823c08afb9d07587b95b18b54..4913b512a79a2c4a7f096bf1ae72f365f004e48b 100644 (file)
@@ -2471,7 +2471,7 @@ _bfd_coff_generic_relocate_section (output_bfd, info, input_bfd,
              bfd_vma addr = rel->r_vaddr 
                + input_section->output_offset 
                  + input_section->output_section->vma;
-             fwrite (&addr, 1,4, info->base_file);
+             fwrite (&addr, 1,4, (FILE *) info->base_file);
            }
        }
   
index b227af673948b84c168b0c8add843f1ffc39d854..16cd6973e8d30af4452dc778caeb7e6d595fb386 100644 (file)
@@ -21,7 +21,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #include "bfd.h"
 
 #define ARCH_SIZE 32           /* Value doesn't matter. */
-#include <stdio.h>             /* Required by bfdlink.h, from libaout.h */
 #include "libaout.h"
 #include "aout/aout64.h"