Skip to content

Commit

Permalink
[PATCH] uml: fix gcov support
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jeff Dike authored and Linus Torvalds committed Sep 27, 2006
1 parent a8b4fc4 commit 09b185a
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions arch/um/kernel/gmon_syms.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
*/

0 comments on commit 09b185a

Please sign in to comment.