mirror of https://github.com/ARMmbed/mbed-os.git
Add __cxa_pure_virtual to avoid pulling in functions from the C++ library
Fixes PRMBED-859pull/17/merge
parent
14409cd7fd
commit
beed7117ad
|
@ -15,6 +15,7 @@
|
||||||
*/
|
*/
|
||||||
#include "semihost_api.h"
|
#include "semihost_api.h"
|
||||||
#include "mbed_interface.h"
|
#include "mbed_interface.h"
|
||||||
|
#include "toolchain.h"
|
||||||
|
|
||||||
#ifdef TOOLCHAIN_GCC_CW
|
#ifdef TOOLCHAIN_GCC_CW
|
||||||
// TODO: Ideally, we would like to define directly "_ExitProcess"
|
// TODO: Ideally, we would like to define directly "_ExitProcess"
|
||||||
|
@ -34,3 +35,9 @@ void exit(int return_code) {
|
||||||
|
|
||||||
while (1);
|
while (1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
WEAK void __cxa_pure_virtual(void);
|
||||||
|
WEAK void __cxa_pure_virtual(void) {
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue