This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Fix for coffcode.h
- To: binutils at sources dot redhat dot com
- Subject: Fix for coffcode.h
- From: "Mark E." <snowball3 at bigfoot dot com>
- Date: Sat, 14 Apr 2001 10:12:29 -0400
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);