diff options
author | David Chisnall <theraven@FreeBSD.org> | 2011-11-22 17:30:41 +0000 |
---|---|---|
committer | David Chisnall <theraven@FreeBSD.org> | 2011-11-22 17:30:41 +0000 |
commit | 6ec4e3f257f52d313f034b97021e98baea00fc7c (patch) | |
tree | 7b3792fade8be6c76ee5a507abfd3ca80ab10ff0 /terminate.cc |
Notes
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(); + } +} |