From a31a75244cdb34de17fa0315f8672c7091f708c9 Mon Sep 17 00:00:00 2001 From: Aaron Arvey Date: Fri, 15 Apr 2005 16:13:49 +0000 Subject: [PATCH] Added __bb_init_func for linking purposes. --- loader/preloader.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/loader/preloader.c b/loader/preloader.c index 97d36066b28..a10558bc929 100644 --- a/loader/preloader.c +++ b/loader/preloader.c @@ -145,6 +145,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 * * It calls wld_start, passing a pointer to the args it receives -- 2.11.4.GIT