This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[committed] Fix typo in mach-o.c
- From: Tristan Gingold <gingold at adacore dot com>
- To: binutils Development <binutils at sourceware dot org>
- Date: Wed, 17 Aug 2011 12:17:26 +0200
- Subject: [committed] Fix typo in mach-o.c
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);