2 * Minimal set of C++ functions so that libstdc++ is not required
4 * Copyright (C) ARM Limited 2010-2015. All rights reserved.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
14 void operator delete(void *ptr) {
20 void operator delete[](void *ptr) {
24 void *operator new(size_t size) {
25 void *ptr = malloc(size == 0 ? 1 : size);
32 void *operator new[](size_t size) {
33 return operator new(size);
37 void __cxa_pure_virtual() {
38 printf("pure virtual method called\n");