[llvm-dev] Providing __dso_handle in LLVM

Joerg Sonnenberger via llvm-dev llvm-dev at lists.llvm.org
Fri Jun 2 06:14:17 PDT 2017


On Fri, Jun 02, 2017 at 03:47:39AM +0000, Petr Hosek via llvm-dev wrote:
> We don't think __dso_handle should be provided by the C library. The name
> __dso_handle is not part of the ABI contract with the C library, it's
> entirely a name chosen by the C++ ABI.

That statement is plainly false. It is part of the contract between
__cxa_atexit users and __cxa_finalize. That is on most platforms the C library.
Note that __cxa_atexit is used by the C frontend as well for attribute
destructor support.

Joerg


More information about the llvm-dev mailing list