]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
When UML is compiled with _FORTIFY_SOURCE we have to export all _chk()
authorRichard Weinberger <richard@nod.at>
Sat, 16 Jul 2011 13:31:09 +0000 (23:31 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 26 Jul 2011 05:05:18 +0000 (15:05 +1000)
functions which are used in modules.  For now it's only the case for
__sprintf_chk().

Tested-by: Florian Fainelli <florian@openwrt.org>
Reported-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Richard Weinberger <richard@nod.at>
Acked-by: Vitaliy Ivanov <vitalivanov@gmail.com>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/um/os-Linux/user_syms.c

index 05f5ea8e83d2ab211e4dfc27b6be2a458da59e74..45ffe46871e0528e388ff58aa264694647c06235 100644 (file)
@@ -113,3 +113,8 @@ EXPORT_SYMBOL(__stack_smash_handler);
 
 extern long __guard __attribute__((weak));
 EXPORT_SYMBOL(__guard);
+
+#ifdef _FORTIFY_SOURCE
+extern int __sprintf_chk(char *str, int flag, size_t strlen, const char *format);
+EXPORT_SYMBOL(__sprintf_chk);
+#endif