Fix build issues in make_object; fix linkage issues

This commit is contained in:
TuxSH authored and Michael Scire committed 2019-06-03 17:41:04 -07:00
1 parent c47a9931d9
commit 504c74bc57
5 files changed
+39 -25

No files matched your search

+1 -10
View File
@@ -1,4 +1,4 @@
/* Note: copied from newlib */
/* Note: copied from newlib or libgcc */
#ifdef __cplusplus
extern "C" {
#endif
@@ -86,15 +86,6 @@ __libc_fini_array (void)
}
#endif
int
__cxa_atexit (void (*fn) (void *),
void *arg,
void *d)
{
return 0;
}
void *__dso_handle = 0;
/*
FUNCTION
<<memmove>>---move possibly overlapping memory
+17
View File
@@ -3,4 +3,21 @@
void *operator new(std::size_t) { for(;;); }
void *operator new[](std::size_t) { for(;;); }
void operator delete(void *) { }
void operator delete(void *, std::size_t) { }
void operator delete[](void *) { }
void operator delete[](void *, std::size_t) { }
extern "C" {
int
__cxa_atexit (void (*fn) (void *),
void *arg,
void *d)
{
return 0;
}
void *__dso_handle = 0;
[[noreturn]] void __cxa_pure_virtual() { for (;;); }
}
+7
View File
@@ -1,4 +1,11 @@
#include <mesosphere/core/make_object.hpp>
#include <mesosphere/processes/KEvent.hpp>
using namespace mesosphere;
int main(void) {
auto obj = MakeObjectRaw<KEvent>();
(void)obj;
for(;;);
return 0;
}