2011-08-17 Tristan Gingold <gingold@adacore.com>
authorTristan Gingold <gingold@adacore.com>
Wed, 17 Aug 2011 10:17:39 +0000 (10:17 +0000)
committerTristan Gingold <gingold@adacore.com>
Wed, 17 Aug 2011 10:17:39 +0000 (10:17 +0000)
* mach-o.c (bfd_mach_o_write_section_32): Fix typo.

bfd/ChangeLog
bfd/mach-o.c

index 1cd864b692c5b7d055167d8771620bc8a2a1b3c9..54ac6f59828bc9432de0309bb2b9d8ede1b70114 100644 (file)
@@ -1,3 +1,7 @@
+2011-08-17  Tristan Gingold  <gingold@adacore.com>
+
+       * mach-o.c (bfd_mach_o_write_section_32): Fix typo.
+
 2011-08-17  Alan Modra  <amodra@gmail.com>
 
        PR ld/12762
index 832bc98a142437ecb38266bb7cbb804e8e14f53b..6b2d3d40e63da9d85d956ae38b5b22dbdeaa4f29 100644 (file)
@@ -957,7 +957,7 @@ bfd_mach_o_write_section_32 (bfd *abfd, bfd_mach_o_section *section)
   struct mach_o_section_32_external raw;
 
   memcpy (raw.sectname, section->sectname, 16);
-  memcpy (raw.segname + 16, section->segname, 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);
This page took 0.029764 seconds and 4 git commands to generate.