um: fix _FORTIFY_SOURCE=2 support for kernel modules
commitf956b3e40ad7b9f7c0d33b80fe78f57fedb74f49
authorRichard Weinberger <richard@nod.at>
Tue, 26 Jul 2011 00:12:47 +0000 (25 17:12 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Jul 2011 03:57:12 +0000 (25 20:57 -0700)
tree44e5b311271d6da81df967de711a78e042d16af9
parent22e9b917ab7ccd98046ad9428fb28967f0744605
um: fix _FORTIFY_SOURCE=2 support for kernel modules

When UML is compiled with _FORTIFY_SOURCE we have to export all _chk()
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/um/os-Linux/user_syms.c