Remove redundant calls to exec_static_constructors()

This commit is contained in:
Christian Helmuth 2018-05-14 17:21:03 +02:00
parent 501d82b99f
commit 23f4acfabc
2 changed files with 0 additions and 11 deletions

View File

@ -196,8 +196,5 @@ struct Cpu_sampler::Main : Thread_list_change_handler
void Component::construct(Genode::Env &env)
{
/* XXX execute constructors of global statics (uses shared objects) */
env.exec_static_constructors();
static Cpu_sampler::Main inst(env);
}

View File

@ -205,14 +205,6 @@ struct Test::Main
void Component::construct(Genode::Env &env)
{
/*
* The indirect dependency from libc (via ttf_font) introduces a global
* constructor in the binary. (typeinfo for 'Genode::Exception').
*
* XXX Why is this ctors entry generated?
*/
env.exec_static_constructors();
static Test::Main main(env);
}