* [PATCH 4/8] UML - Fix gcov support
@ 2006-09-25 18:34 Jeff Dike
0 siblings, 0 replies; only message in thread
From: Jeff Dike @ 2006-09-25 18:34 UTC (permalink / raw)
To: akpm; +Cc: linux-kernel, user-mode-linux-devel, Paolo Giarrusso
Make __bb_init_func weak in order to avoid a link failure with some libcs
and/or gccs.
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Index: linux-2.6.17/arch/um/kernel/gmon_syms.c
===================================================================
--- linux-2.6.17.orig/arch/um/kernel/gmon_syms.c 2006-09-11 11:14:48.000000000 -0400
+++ linux-2.6.17/arch/um/kernel/gmon_syms.c 2006-09-11 11:28:21.000000000 -0400
@@ -5,7 +5,7 @@
#include "linux/module.h"
-extern void __bb_init_func(void *);
+extern void __bb_init_func(void *) __attribute__((weak));
EXPORT_SYMBOL(__bb_init_func);
/* This is defined (and referred to in profiling stub code) only by some GCC
@@ -21,14 +21,3 @@ EXPORT_SYMBOL(__gcov_init);
extern void __gcov_merge_add(void *) __attribute__((weak));
EXPORT_SYMBOL(__gcov_merge_add);
-
-/*
- * Overrides for Emacs so that we follow Linus's tabbing style.
- * Emacs will notice this stuff at the end of the file and automatically
- * adjust the settings for this buffer only. This must remain at the end
- * of the file.
- * ---------------------------------------------------------------------------
- * Local variables:
- * c-file-style: "linux"
- * End:
- */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-09-25 18:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-25 18:34 [PATCH 4/8] UML - Fix gcov support Jeff Dike
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®