Now that ubsan does function interception (for signals), we
need to ensure that ubsan is initialized before any library
constructors are called. Otherwise, if a constructor calls
sigaction, ubsan will intercept in an unitialized state, which
will cause a crash.
This patch is a partial revert of r317757, which removed
preinit arrays for ubsan.
This goes into both static and shared, but must go into STATIC only. Don't remember details but it will fails on Android and Apple bots.
PTAL at D39827. Maybe just restore relevant parts of D39827.