From: Jeff Dike <jdike@addtoit.com>
To: Blaisorblade <blaisorblade@yahoo.it>, Adrian Bunk <bunk@stusta.de>
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: [uml-devel] Fixing the __gcov_init problem
Date: Sun, 13 Mar 2005 01:53:53 -0500 [thread overview]
Message-ID: <200503130654.j2D6rrAM005199@ccure.user-mode-linux.org> (raw)
OK, below is my latest attempt at getting this right. It provides a weak
definition of __gcov_init for gcc's that don't generate it, while gcc's that
do will have their's override this one.
The patch is against -bk8.
Jeff
# Try to finally fix the __gcov_init thing corectly.
# This patch makes a weak definition of __gcov_init, which will be used if
# there is no other definition, and which will be overridden if there is a
# real definition. Thus, if it is not used, then the weak definition will
# satisfy the EXPORT_SYMBOL, and if it is, then the real one will.
Index: linux-2.6.11/arch/um/kernel/gmon_syms.c
===================================================================
--- linux-2.6.11.orig/arch/um/kernel/gmon_syms.c 2005-03-12 18:59:48.000000000 -0500
+++ linux-2.6.11/arch/um/kernel/gmon_syms.c 2005-03-12 22:44:31.000000000 -0500
@@ -10,17 +10,13 @@
extern void __gcov_init(void *);
EXPORT_SYMBOL(__gcov_init);
#else
+#endif
+
extern void __bb_init_func(void *);
EXPORT_SYMBOL(__bb_init_func);
-#endif
-/*
- * 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:
- */
+void __attribute__((weak)) __gcov_init(void *arg)
+{
+}
+
+EXPORT_SYMBOL(__gcov_init);
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
next reply other threads:[~2005-03-13 14:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-13 6:53 Jeff Dike [this message]
2005-03-14 19:16 ` [uml-devel] Fixing the __gcov_init problem Blaisorblade
2005-03-14 22:19 ` Jeff Dike
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200503130654.j2D6rrAM005199@ccure.user-mode-linux.org \
--to=jdike@addtoit.com \
--cc=blaisorblade@yahoo.it \
--cc=bunk@stusta.de \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox