Ghost Kernel

C++ runtime & thread-local storage support 2020/01/28, 18:44:12

With the latest commits, C++ runtime features (most notably exceptions) and thread-local storage are now supported in executables and shared libraries.

The toolchain build was modified so that the shared version of libgcc libgcc_s.so.1 is now built. Using -shared-libgcc as a linker flag will now cause libgcc to be linked dynamically and therefore allow exception handling over multiple shared objects.

I've adapted the test suite to now call a runtime test program that performs multiple tests for global constructors, exception handling and TLS.

With those additions, shared library support should now be sufficient to continue work on other parts, most notably inter-process messaging will next be implemented in the new kernel implementation.

Comments

Write a comment...
  • <iframe src="https://www.youtube.com/embed/Iy-dJwHVX84?controls=0" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> 2021/04/17, 13:08:33

    I've already passed you the problem and you can't solve it.

    :P

    • Max 2021/04/20, 17:22:46

      What problem mate? You're just a spammer.

Cancel