Kernel: Group C++ ABI functions together

As suggested in #3096.
This commit is contained in:
Ben Wiederhake 2020-08-11 23:37:27 +02:00 committed by Andreas Kling
parent ff16da8c77
commit 8a41ce5cc7
Notes: sideshowbarker 2024-07-19 03:41:56 +09:00
2 changed files with 7 additions and 6 deletions

View file

@ -306,4 +306,10 @@ void free(void* p)
{
ASSERT_NOT_REACHED();
}
extern "C" int __cxa_atexit(void (*)(void*), void*, void*)
{
ASSERT_NOT_REACHED();
return 0;
}
}

View file

@ -381,13 +381,8 @@ extern "C" {
multiboot_info_t* multiboot_info_ptr;
}
// Define some Itanium C++ ABI methods to stop the linker from complaining
// Define some Itanium C++ ABI methods to stop the linker from complaining.
// If we actually call these something has gone horribly wrong
void* __dso_handle __attribute__((visibility("hidden")));
extern "C" int __cxa_atexit(void (*)(void*), void*, void*)
{
ASSERT_NOT_REACHED();
return 0;
}
}