diff options
Diffstat (limited to 'playground')
-rw-r--r-- | playground/include/playground.h | 1 | ||||
-rw-r--r-- | playground/src/init_high.cpp | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/playground/include/playground.h b/playground/include/playground.h index 3ccfeeb..168c5c5 100644 --- a/playground/include/playground.h +++ b/playground/include/playground.h @@ -13,6 +13,7 @@ int main(); extern "C" void Default_Handler(); +// TODO: replace with std::extent<>; http://en.cppreference.com/w/cpp/types/extent template<typename T, size_t N> static inline constexpr size_t SizeOfArray(const T(&)[N]) { diff --git a/playground/src/init_high.cpp b/playground/src/init_high.cpp index b877b7d..85e7d41 100644 --- a/playground/src/init_high.cpp +++ b/playground/src/init_high.cpp @@ -18,6 +18,13 @@ extern constructor_t _init_array_start[], _init_array_end[]; } extern "C" +__attribute__((noreturn)) +void __cxa_pure_virtual() { + while (1) { + } +} + +extern "C" void *memset(void *dst, int i, size_t n) { if (n) { char *d = (char *) dst; |