mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-23 01:40:30 +00:00
09b185a316
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> Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
24 lines
691 B
C
24 lines
691 B
C
/*
|
|
* Copyright (C) 2001, 2002 Jeff Dike (jdike@karaya.com)
|
|
* Licensed under the GPL
|
|
*/
|
|
|
|
#include "linux/module.h"
|
|
|
|
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
|
|
* 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);
|