[committed] Fix typo in mach-o.c
Tristan Gingold
gingold@adacore.com
Wed Aug 17 10:17:00 GMT 2011
Hi,
this patch fixes a typo added by a previous patch. Wasn't caught as I tested only gas for 64bits.
Committed on trunk.
Tristan.
bfd/
2011-08-17 Tristan Gingold <gingold@adacore.com>
* mach-o.c (bfd_mach_o_write_section_32): Fix typo.
Index: mach-o.c
===================================================================
RCS file: /cvs/src/src/bfd/mach-o.c,v
retrieving revision 1.64
diff -c -r1.64 mach-o.c
*** mach-o.c 8 Aug 2011 14:53:30 -0000 1.64
--- mach-o.c 17 Aug 2011 10:15:53 -0000
***************
*** 957,963 ****
struct mach_o_section_32_external raw;
memcpy (raw.sectname, section->sectname, 16);
! memcpy (raw.segname + 16, section->segname, 16);
bfd_h_put_32 (abfd, section->addr, raw.addr);
bfd_h_put_32 (abfd, section->size, raw.size);
bfd_h_put_32 (abfd, section->offset, raw.offset);
--- 957,963 ----
struct mach_o_section_32_external raw;
memcpy (raw.sectname, section->sectname, 16);
! memcpy (raw.segname, section->segname, 16);
bfd_h_put_32 (abfd, section->addr, raw.addr);
bfd_h_put_32 (abfd, section->size, raw.size);
bfd_h_put_32 (abfd, section->offset, raw.offset);
More information about the Binutils
mailing list