From 9dad716d4d2993f50b165747781244bd7c43bc95 Mon Sep 17 00:00:00 2001 From: Siddhesh Poyarekar Date: Thu, 22 Jul 2021 18:38:06 +0530 Subject: mtrace: Wean away from malloc hooks Wean mtrace away from the malloc hooks and move them into the debug DSO. Split the API away from the implementation so that we can add the API to libc.so as well as libc_malloc_debug.so, with the libc implementations being empty. Update localplt data since memalign no longer has any callers after this change. Reviewed-by: Carlos O'Donell Tested-by: Carlos O'Donell --- sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc_malloc_debug.abilist | 2 ++ sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc_malloc_debug.abilist | 2 ++ sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data | 1 - 3 files changed, 4 insertions(+), 1 deletion(-) (limited to 'sysdeps/unix/sysv/linux/powerpc/powerpc64') diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc_malloc_debug.abilist b/sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc_malloc_debug.abilist index 0696d526d4..9e0c7a48c0 100644 --- a/sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc_malloc_debug.abilist +++ b/sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc_malloc_debug.abilist @@ -11,6 +11,8 @@ GLIBC_2.3 mcheck_check_all F GLIBC_2.3 mcheck_pedantic F GLIBC_2.3 memalign F GLIBC_2.3 mprobe F +GLIBC_2.3 mtrace F +GLIBC_2.3 muntrace F GLIBC_2.3 posix_memalign F GLIBC_2.3 pvalloc F GLIBC_2.3 realloc F diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc_malloc_debug.abilist b/sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc_malloc_debug.abilist index cc6531b017..bf543ed1e0 100644 --- a/sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc_malloc_debug.abilist +++ b/sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc_malloc_debug.abilist @@ -11,6 +11,8 @@ GLIBC_2.17 mcheck_check_all F GLIBC_2.17 mcheck_pedantic F GLIBC_2.17 memalign F GLIBC_2.17 mprobe F +GLIBC_2.17 mtrace F +GLIBC_2.17 muntrace F GLIBC_2.17 posix_memalign F GLIBC_2.17 pvalloc F GLIBC_2.17 realloc F diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data b/sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data index bb498fbe3a..d69b7ae646 100644 --- a/sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data +++ b/sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data @@ -1,7 +1,6 @@ libc.so: calloc libc.so: free libc.so: malloc -libc.so: memalign libc.so: realloc libm.so: matherr # The TLS-enabled version of these functions is interposed from libc.so. -- cgit 1.4.1