llvm-mos / llvm-mos-sdk

SDK for developing with the llvm-mos compiler
https://www.llvm-mos.org
Other
258 stars 52 forks source link

Move atexit to cxa-atexit.cc #259

Closed mysterymath closed 7 months ago

mysterymath commented 7 months ago

atexit should only be brought in if directly referenced, by calloc can be a libcall in some circumstances. Accordingly, move atexit out of stdlib.cc (with calloc) into cxa-atexit.cc.