From a100b37fdf637881f2cd21848cf2b05f43ab4bdf Mon Sep 17 00:00:00 2001 From: Martin Stein Date: Wed, 5 Feb 2014 14:43:32 +0100 Subject: [PATCH] base: provide a weak init_rtld dummy in base lib This is needed later to eliminate LDSO specific CRT0 implementations. Issue #1042 --- base/src/platform/init_main_thread.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/base/src/platform/init_main_thread.cc b/base/src/platform/init_main_thread.cc index 74579c44f6..18184f5d5f 100644 --- a/base/src/platform/init_main_thread.cc +++ b/base/src/platform/init_main_thread.cc @@ -31,6 +31,12 @@ void prepare_init_main_thread(); enum { MAIN_THREAD_STACK_SIZE = 16UL * 1024 * sizeof(Genode::addr_t) }; +/** + * Satisfy crt0.s in static programs, LDSO overrides this symbol + */ +extern "C" void init_rtld() __attribute__((weak)); +void init_rtld() { } + /** * The first thread in a program */