Added __bb_init_func for linking purposes.

This commit is contained in:
Aaron Arvey 2005-04-15 16:13:49 +00:00 committed by Alexandre Julliard
parent 6d54716f17
commit a31a75244c
1 changed files with 10 additions and 0 deletions

View File

@ -144,6 +144,16 @@ struct wld_link_map {
};
/*
* The __bb_init_func is an empty function only called when file is
* compiled with gcc flags "-fprofile-arcs -ftest-coverage". This
* function is normally provided by libc's startup files, but since we
* build the preloader with "-nostartfiles -nodefaultlibs", we have to
* provide our own (empty) version, otherwise linker fails.
*/
void __bb_init_func() { return; }
/*
* The _start function is the entry and exit point of this program
*