commit | 8ae96588712f3c7fba9dcc8199f4e37f658ff03a | [log] [tgz] |
---|---|---|
author | Martin Storsjö <martin@martin.st> | Tue Oct 27 23:06:17 2020 +0200 |
committer | Martin Storsjö <martin@martin.st> | Wed Nov 11 12:34:47 2020 +0200 |
tree | 4e7c93a6fd2b55ad9d731e23291d16aa6ec854b5 | |
parent | c9b4d88324c126336730beb5822c8e57942444bf [diff] |
crt: Make tls_atexit run before __mingw_TLScallback If libgcc was built with the win32 thread model, the emutls allocations are freed via __mingw_TLScallback, which is hooked up at .CRT$XLD; move the tls_atexit callback before this, to make sure TLS destructors are run before their memory is freed by emutls. Signed-off-by: Martin Storsjö <martin@martin.st>