[APPROVE] __cxa_pure_virtual()
Bart Veer
bartv@ecoscentric.com
Thu Mar 27 17:56:00 GMT 2003
I have just committed a patch to CYGPKG_INFRA to provide an
implementation of __cxa_pure_virtual() that is appropriate for eCos,
overriding the one in libsupc++.
http://sources.redhat.com/ml/ecos-patches/2003-03/msg00209.html
Without this patch any C++ code that uses pure virtual functions will
fail to link. The patch adds a single new function
__cxa_pure_virtual() which will never get called in normal operation,
but which does get referenced by the compiled C++ code. The only time
this function may get called is if the application calls a virtual
function while the object is still being created, which gives
undefined behaviour. Hence the risk is small.
Bart
More information about the Ecos-maintainers
mailing list