summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/binutils-1-gas-memmove.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/binutils-1-gas-memmove.patch b/src/binutils-1-gas-memmove.patch
new file mode 100644
index 0000000..ac6e7b8
--- /dev/null
+++ b/src/binutils-1-gas-memmove.patch
@@ -0,0 +1,20 @@
+This file is part of mingw-cross-env.
+See doc/index.html for further information.
+
+This patch has been taken from:
+http://sourceware.org/bugzilla/show_bug.cgi?id=11456
+
+diff -u -r1.22 -r1.23
+--- a/gas/input-scrub.c 2009/09/11 15:27:33 1.22
++++ b/gas/input-scrub.c 2010/03/30 23:20:25 1.23
+@@ -343,8 +343,8 @@
+
+ if (partial_size)
+ {
+- memcpy (buffer_start + BEFORE_SIZE, partial_where,
+- (unsigned int) partial_size);
++ memmove (buffer_start + BEFORE_SIZE, partial_where,
++ (unsigned int) partial_size);
+ memcpy (buffer_start + BEFORE_SIZE, save_source, AFTER_SIZE);
+ }
+ limit = input_file_give_next_buffer (buffer_start \ No newline at end of file