X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=arch%2Fum%2Fkernel%2Fgmon_syms.c;h=2c86e7fdb014356da4029dd767914f8a355fb622;hb=f7f1b0f1e2fbadeab12d24236000e778aa9b1ead;hp=6179f0183d2ffb1df8e9c900b078a7c149aad9fa;hpb=e3f6fb6212a7102bdb56ba38fa1e98fe72950475;p=linux-2.6.git diff --git a/arch/um/kernel/gmon_syms.c b/arch/um/kernel/gmon_syms.c index 6179f0183..2c86e7fdb 100644 --- a/arch/um/kernel/gmon_syms.c +++ b/arch/um/kernel/gmon_syms.c @@ -8,6 +8,20 @@ extern void __bb_init_func(void *); EXPORT_SYMBOL(__bb_init_func); +/* This is defined (and referred to in profiling stub code) only by some GCC + * versions in libgcov. + * + * Since SuSE backported the fix, we cannot handle it depending on GCC version. + * So, unconditinally export it. But also give it a weak declaration, which will + * be overriden by any other one. + */ + +extern void __gcov_init(void *) __attribute__((weak)); +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