From: Dirk Mueller Date: Sun, 1 Jun 2003 20:02:30 +0000 (+0000) Subject: make the new symbols weak to fix the new_override testcase. X-Git-Tag: svn/VALGRIND_2_0_0~121 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f32364c8a9671e75be1b69038ced323bde08ff0a;p=thirdparty%2Fvalgrind.git make the new symbols weak to fix the new_override testcase. finally no regression test suite failures! git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1663 --- diff --git a/coregrind/vg_replace_malloc.c b/coregrind/vg_replace_malloc.c index 1d2de8bf73..f1cde846b0 100644 --- a/coregrind/vg_replace_malloc.c +++ b/coregrind/vg_replace_malloc.c @@ -180,7 +180,7 @@ void* __builtin_new ( Int n ) } /* gcc 3.X.X mangles them differently. */ -void* _Znwj ( Int n ) +__attribute__((weak)) void* _Znwj ( Int n ) { return __builtin_new(n); } @@ -205,7 +205,7 @@ void* __builtin_vec_new ( Int n ) } /* gcc 3.X.X mangles them differently. */ -void* _Znaj ( Int n ) +__attribute__((weak)) void* _Znaj ( Int n ) { return __builtin_vec_new(n); }