aboutsummaryrefslogtreecommitdiff
path: root/malloc/malloc.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2017-04-18 11:50:58 +0200
committerFlorian Weimer <fweimer@redhat.com>2017-04-18 11:50:58 +0200
commit025b33ae84bb8f15b2748a1d8605dca453fce112 (patch)
tree2bb47e51512665a67018d8ed07e99b6401544a89 /malloc/malloc.c
parent6c6ab1fc49d524ab1892cb20ee74352ace0b8034 (diff)
downloadglibc-025b33ae84bb8f15b2748a1d8605dca453fce112.zip
glibc-025b33ae84bb8f15b2748a1d8605dca453fce112.tar.gz
glibc-025b33ae84bb8f15b2748a1d8605dca453fce112.tar.bz2
malloc: Turn cfree into a compatibility symbol
Diffstat (limited to 'malloc/malloc.c')
-rw-r--r--malloc/malloc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/malloc/malloc.c b/malloc/malloc.c
index 4c40e2e..068ffc1 100644
--- a/malloc/malloc.c
+++ b/malloc/malloc.c
@@ -84,7 +84,6 @@
independent_calloc(size_t n_elements, size_t size, void* chunks[]);
independent_comalloc(size_t n_elements, size_t sizes[], void* chunks[]);
pvalloc(size_t n);
- cfree(void* p);
malloc_trim(size_t pad);
malloc_usable_size(void* p);
malloc_stats();
@@ -5290,7 +5289,6 @@ weak_alias (__malloc_info, malloc_info)
strong_alias (__libc_calloc, __calloc) weak_alias (__libc_calloc, calloc)
-strong_alias (__libc_free, __cfree) weak_alias (__libc_free, cfree)
strong_alias (__libc_free, __free) strong_alias (__libc_free, free)
strong_alias (__libc_malloc, __malloc) strong_alias (__libc_malloc, malloc)
strong_alias (__libc_memalign, __memalign)
@@ -5306,6 +5304,9 @@ weak_alias (__malloc_stats, malloc_stats)
weak_alias (__malloc_usable_size, malloc_usable_size)
weak_alias (__malloc_trim, malloc_trim)
+#if SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_26)
+compat_symbol (libc, __libc_free, cfree, GLIBC_2_0);
+#endif
/* ------------------------------------------------------------
History: