diff options
Diffstat (limited to 'terminate.cc')
-rw-r--r-- | terminate.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/terminate.cc b/terminate.cc new file mode 100644 index 000000000000..663fe52d1d12 --- /dev/null +++ b/terminate.cc @@ -0,0 +1,14 @@ +#include <stdlib.h> + +namespace std +{ + /** + * Stub implementation of std::terminate. Used when the STL implementation + * doesn't provide one. + */ + __attribute__((weak)) + void terminate() + { + abort(); + } +} |