aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/section.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index a2fb296..90f5e78 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2012-11-07 H.J. Lu <hongjiu.lu@intel.com>
+
+ * section.c (bfd_get_section_contents): Replace memcpy
+ with memmove.
+
2012-11-07 Hans-Peter Nilsson <hp@axis.com>
PR binutils/14481
diff --git a/bfd/section.c b/bfd/section.c
index ab5635b..6fd7d8e 100644
--- a/bfd/section.c
+++ b/bfd/section.c
@@ -1546,7 +1546,7 @@ bfd_get_section_contents (bfd *abfd,
return FALSE;
}
- memcpy (location, section->contents + offset, (size_t) count);
+ memmove (location, section->contents + offset, (size_t) count);
return TRUE;
}