[c++] add some required arm symbols for c++

This commit is contained in:
Travis Geiselbrecht
2016-02-19 12:23:18 -08:00
parent ae28c92fad
commit ed19c37227
3 changed files with 17 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2008 Travis Geiselbrecht
* Copyright (c) 2008-2015 Travis Geiselbrecht
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files

View File

@@ -23,6 +23,8 @@
/* some cruft we have to define when using the linux toolchain */
#include <unwind.h>
void *__dso_handle;
#if defined(__ARM_EABI_UNWINDER__) && __ARM_EABI_UNWINDER__
/* Our toolchain has eabi functionality built in, but they're not really used.
@@ -49,3 +51,12 @@ void raise(void)
{
}
extern int __cxa_atexit(void (*func)(void *), void *arg, void *d);
int __aeabi_atexit(void *arg, void (*func)(void *), void *d)
{
return __cxa_atexit(func, arg, d);
}

View File

@@ -27,3 +27,8 @@ extern "C" void __cxa_pure_virtual(void)
panic("pure virtual called\n");
}
extern "C" int __cxa_atexit(void (*destructor)(void *), void *arg, void *__dso_handle)
{
return 0;
}