From a304cfca9d04cc8870512fc2eee785a694c38ae4 Mon Sep 17 00:00:00 2001 From: Christian Prochaska Date: Fri, 19 May 2017 18:51:27 +0200 Subject: [PATCH] ffat_fs: call 'exec_static_constructors()' Fixes #2421 --- repos/libports/src/server/ffat_fs/main.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/repos/libports/src/server/ffat_fs/main.cc b/repos/libports/src/server/ffat_fs/main.cc index 5f13115890..e0afd4c685 100644 --- a/repos/libports/src/server/ffat_fs/main.cc +++ b/repos/libports/src/server/ffat_fs/main.cc @@ -1006,4 +1006,10 @@ struct Main }; -void Component::construct(Genode::Env &env) { static Main main(env); } +void Component::construct(Genode::Env &env) +{ + /* XXX execute constructors of global statics */ + env.exec_static_constructors(); + + static Main main(env); +}