From fc559b4286630d13f27c7672e5d4dea76eed27e3 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Sun, 21 Oct 2012 18:55:13 +0200 Subject: digital/ucoolib/ucoolib/arch: define light __cxa_pure_virtual --- digital/ucoolib/ucoolib/arch/syscalls.newlib.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'digital/ucoolib') diff --git a/digital/ucoolib/ucoolib/arch/syscalls.newlib.c b/digital/ucoolib/ucoolib/arch/syscalls.newlib.c index 93b21579..ecb29bdd 100644 --- a/digital/ucoolib/ucoolib/arch/syscalls.newlib.c +++ b/digital/ucoolib/ucoolib/arch/syscalls.newlib.c @@ -25,3 +25,14 @@ /** This is needed by C++ ABI, this simple definition will do. See: * http://lists.debian.org/debian-gcc/2003/07/msg00057.html */ void *__dso_handle = (void*) &__dso_handle; + +/** This function is called when a pure virtual function is called. This is + * needed by linker because when a abstrat class constructor or destructor is + * called, object is not complete. Replace the one provided by the toolchain + * to avoid including the world. */ +void +__cxa_pure_virtual (void) +{ + while (1) + ; +} -- cgit v1.2.3