This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Fix for coffcode.h


Hello,
I believe I found a typo in coffcode.h while working on revising the DJGPP 
port. coff_write_object_contents() calls coff_swap_filehdr_out directly 
instead of via the table.

2001-04-14  Mark Elbrecht  <snowball3@bigfoot.com>

	* coffcode.h (coff_write_object_contents): Use
	  bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.

Index: coffcode.h
===================================================================
RCS file: /cvs/src/src/bfd/coffcode.h,v
retrieving revision 1.55
diff -c -p -r1.55 coffcode.h
*** coffcode.h	2001/03/08 21:03:57	1.55
--- coffcode.h	2001/04/14 14:02:53
*************** coff_write_object_contents (abfd)
*** 4022,4028 ****
      if (buff == NULL)
        return false;
  
!     coff_swap_filehdr_out (abfd, (PTR) & internal_f, (PTR) buff);
      amount = bfd_write ((PTR) buff, 1, bfd_coff_filhsz (abfd), abfd);
  
      free (buff);
--- 4022,4028 ----
      if (buff == NULL)
        return false;
  
!     bfd_coff_swap_filehdr_out (abfd, (PTR) & internal_f, (PTR) buff);
      amount = bfd_write ((PTR) buff, 1, bfd_coff_filhsz (abfd), abfd);
  
      free (buff);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]