UML: x86_64: fix memcpy export
PATCH 1/1 UML: x86_64: fix memcpy export
./arch/um/sys-x86_64/ksyms.c exports memcpy or __memcpy depending on the gcc version, use the same logic in ./arch/um/os-Linux/user_syms.c
Signed-off-by Nicolas Thill <[email protected]>
--- arch/um/os-Linux/user_syms.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
arch/um/os-Linux/user_syms.c +2 -1
@@ -23,7 +23,8 @@ 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
Signature · 1 line
1.6.0.4
Shouldn't this thing be in arch/um/sys-i386/ksyms.c, instead of having #ifndef?
Quoted 32 lines · Nicolas Thill
./arch/um/sys-x86_64/ksyms.cexports memcpy or__memcpydepending on the gcc version, use the same logic in./arch/um/os-Linux/user_syms.cSigned-off-by Nicolas Thill <[email protected]>---
arch/um/os-Linux/user_syms.c | 3 ++-1 files changed, 2 insertions(+), 1 deletions(-)arch/um/os-Linux/user_syms.c +2
-2@@ -23,7 +23,8 @@ 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 --1.6.0.4
------------------------------------------------------------------------------
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Signature · 1 line
Paolo Giarrusso