Fix for coffcode.h
Mark E.
snowball3@bigfoot.com
Sat Apr 14 07:12:00 GMT 2001
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);
More information about the Binutils
mailing list