target/uml: fix memcpy export on x86_64 with gcc < 4.3 (closes: #6918)
authornico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 2 May 2010 04:20:03 +0000 (04:20 +0000)
committernico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 2 May 2010 04:20:03 +0000 (04:20 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21293 3c298f89-4303-0410-b956-a3cf2f4a3e73

target/linux/uml/patches-2.6.30/003-fix_memcpy_export_on_x86_64.patch [new file with mode: 0644]
target/linux/uml/patches-2.6.32/003-fix_memcpy_export_on_x86_64.patch [new file with mode: 0644]

diff --git a/target/linux/uml/patches-2.6.30/003-fix_memcpy_export_on_x86_64.patch b/target/linux/uml/patches-2.6.30/003-fix_memcpy_export_on_x86_64.patch
new file mode 100644 (file)
index 0000000..7d2efe4
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/arch/um/os-Linux/user_syms.c
++++ b/arch/um/os-Linux/user_syms.c
+@@ -23,7 +23,7 @@ extern int printf(const char *, ...);
+ EXPORT_SYMBOL(strstr);
+ #endif
+-#ifndef __x86_64__
++#if !defined(__x86_64) || (__GNUC__ == 4 && __GNUC_MINOR__ < 3) || (__GNUC__ < 4)
+ extern void *memcpy(void *, const void *, size_t);
+ EXPORT_SYMBOL(memcpy);
+ #endif
diff --git a/target/linux/uml/patches-2.6.32/003-fix_memcpy_export_on_x86_64.patch b/target/linux/uml/patches-2.6.32/003-fix_memcpy_export_on_x86_64.patch
new file mode 100644 (file)
index 0000000..7d2efe4
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/arch/um/os-Linux/user_syms.c
++++ b/arch/um/os-Linux/user_syms.c
+@@ -23,7 +23,7 @@ extern int printf(const char *, ...);
+ EXPORT_SYMBOL(strstr);
+ #endif
+-#ifndef __x86_64__
++#if !defined(__x86_64) || (__GNUC__ == 4 && __GNUC_MINOR__ < 3) || (__GNUC__ < 4)
+ extern void *memcpy(void *, const void *, size_t);
+ EXPORT_SYMBOL(memcpy);
+ #endif
This page took 0.022474 seconds and 4 git commands to generate.