[PATCH 7/7] uml: export symbols added by GCC hardened
- From: Paolo 'Blaisorblade' Giarrusso <blaisorblade@xxxxxxxx>
- Date: Sun, 30 Apr 2006 16:16:24 +0200
From: Paolo 'Blaisorblade' Giarrusso <blaisorblade@xxxxxxxx>
GCC hardened introduces additional symbol refererences (for the canary and
friends), also in modules - add weak export_symbols for them. We already tested
that the weak declaration creates no problem on both GCC's providing the
function definition and on GCC's which don't provide it.
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@xxxxxxxx>
---
arch/um/os-Linux/user_syms.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/arch/um/os-Linux/user_syms.c b/arch/um/os-Linux/user_syms.c
index 2598158..3f33165 100644
--- a/arch/um/os-Linux/user_syms.c
+++ b/arch/um/os-Linux/user_syms.c
@@ -96,6 +96,13 @@ EXPORT_SYMBOL_PROTO(getuid);
EXPORT_SYMBOL_PROTO(fsync);
EXPORT_SYMBOL_PROTO(fdatasync);
+/* Export symbols used by GCC for the stack protector. */
+extern void __stack_smash_handler(void *) __attribute__((weak));
+EXPORT_SYMBOL(__stack_smash_handler);
+
+extern long __guard __attribute__((weak));
+EXPORT_SYMBOL(__guard);
+
/*
* Overrides for Emacs so that we follow Linus's tabbing style.
* Emacs will notice this stuff at the end of the file and automatically
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- References:
- [PATCH 0/7] Uml fixes for 2.6.17
- From: Paolo 'Blaisorblade' Giarrusso
- [PATCH 0/7] Uml fixes for 2.6.17
- Prev by Date: [PATCH 6/7] uml: cleanup unprofile expression and build infrastructure
- Next by Date: [PATCH 1/7] uml: fix patch mismerge
- Previous by thread: [PATCH 6/7] uml: cleanup unprofile expression and build infrastructure
- Next by thread: [PATCH 1/7] uml: fix patch mismerge
- Index(es):