aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2011-08-17 10:17:39 +0000
committerTristan Gingold <gingold@adacore.com>2011-08-17 10:17:39 +0000
commit72b5104c843e1f9d7f1867339917e6e998772151 (patch)
tree698ce4b1240a3d11fa9190944369b0e098d878cb /bfd
parentc77ec7261473e7a12a1af46c585caca4bb597b4f (diff)
downloadgdb-72b5104c843e1f9d7f1867339917e6e998772151.zip
gdb-72b5104c843e1f9d7f1867339917e6e998772151.tar.gz
gdb-72b5104c843e1f9d7f1867339917e6e998772151.tar.bz2
2011-08-17 Tristan Gingold <gingold@adacore.com>
* mach-o.c (bfd_mach_o_write_section_32): Fix typo.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog4
-rw-r--r--bfd/mach-o.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 1cd864b..54ac6f5 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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
diff --git a/bfd/mach-o.c b/bfd/mach-o.c
index 832bc98..6b2d3d4 100644
--- a/bfd/mach-o.c
+++ b/bfd/mach-o.c
@@ -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);