efriedma-quic wrote:

Running C++ destructors using .fini_array is nowhere near compliant with 
standard requirements; the standard requires destructors to run in a specific 
order.  And that order exists for good reasons: destruction in the wrong order 
is likely to lead to use-after-free, or destroying objects which were never 
constructed.

Are you sure you can't use `-fno-c++-static-destructors`?  That suppresses 
atexit calls in a way that's much less likely to explode.

https://github.com/llvm/llvm-project/pull/211963
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to