Hi John
You mean I need hide to the symbal operator new in libc.so ?
So I trip the libc.so , so there is no symbals operator new in libc.so
localhost:/system/bin # readelf -s ../lib64/libc++.so | grep Znam
696: 0005cd2044 FUNCWEAK DEFAULT 12 _ZnamRKSt9not
#include
#include
class Node{
public:
int a;
int b;
};
extern "C" void demoNew(void) {
Node *n0 = new Node;
Node *n1 = (Node *)new char[sizeof(Node)];
printf("no=%p n1=%p\n", n0, n1);
delete n0;
delete[] n1;
}
int main(int a
Hi John:
I wrote the simple example, error can re-producce.
As below:
#include
#include
class Node{
public:
int a;
int b;
};
extern "C" void demoNew(void) {
Node *n0 = new Node;
Node *n1 = (Node *)new char[sizeof(Node)];
printf("no=%p n1