Add __cxa_pure_virtual to avoid pulling in functions from the C++ library

Fixes PRMBED-859
pull/17/merge
Bogdan Marinescu 2013-07-29 18:13:37 +03:00
parent 14409cd7fd
commit beed7117ad
1 changed files with 7 additions and 0 deletions

View File

@ -15,6 +15,7 @@
*/
#include "semihost_api.h"
#include "mbed_interface.h"
#include "toolchain.h"
#ifdef TOOLCHAIN_GCC_CW
// TODO: Ideally, we would like to define directly "_ExitProcess"
@ -34,3 +35,9 @@ void exit(int return_code) {
while (1);
}
WEAK void __cxa_pure_virtual(void);
WEAK void __cxa_pure_virtual(void) {
exit(1);
}