search for: mull_custom_test_at_exit

Displaying 1 result from an estimated 1 matches for "mull_custom_test_at_exit".

2017 Nov 19
2
JIT and atexit crash
...at can be done to cover this case inside of the Orc engine? Currently, I worked around this problem by resolving atexit to my custom function that does nothing. RuntimeDyld::SymbolInfo findSymbol(const std::string &Name) { if (Name == "_atexit") { return findSymbol("mull_custom_test_at_exit"); } if (auto SymAddr = RTDyldMemoryManager::getSymbolAddressInProcess(Name)) return RuntimeDyld::SymbolInfo(SymAddr, JITSymbolFlags::Exported); return RuntimeDyld::SymbolInfo(nullptr); } extern "C" int mull_custom_test_at_exit(void (* p)(void)) { return...