Preloader Compiles with Coverage Flags

Aaron Arvey aarvey at cs.hmc.edu
Tue Mar 29 05:22:05 CST 2005


This is handy for when you want to compile entire wine source with
gcov coverage analysis enabled.

See http://www.winehq.org/hypermail/wine-patches/2005/02/0000.html
for more information on how to compile wine with gcov support.

Changelog:
    * loader/preloader.c
      adds empty __bb_init_func function

Signed-off-by: Aaron Arvey <aarvey_at_cs.hmc.edu>

Index: loader/preloader.c
===================================================================
RCS file: /home/wine/wine/loader/preloader.c,v
retrieving revision 1.13
diff -u -3 -p -r1.13 preloader.c
--- loader/preloader.c	22 Mar 2005 16:42:25 -0000	1.13
+++ loader/preloader.c	29 Mar 2005 10:51:06 -0000
@@ -143,6 +143,12 @@ struct wld_link_map {
     ElfW(Addr) l_interp;
 };

+/*
+ * The __bb_init_func is an empty function only called when file
+ * is compiled with gcc flags "-fprofile-arcs -ftest-coverage".
+ * If using these flags, this function is necessary to compile.
+ */
+void __bb_init_func(){return;}

 /*
  * The _start function is the entry and exit point of this program



More information about the wine-devel mailing list