diff options
author | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2021-07-22 18:37:57 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2021-07-22 18:37:57 +0530 |
commit | 55a4dd39308951da4b0da84b19e415c2bb451b60 (patch) | |
tree | a0c690570b0bcbe7216e9936b06ea01c3b15fe5c /malloc/hooks.c | |
parent | 57b07bede12635bd6d6aa0e488824bb510bbeca4 (diff) | |
download | glibc-55a4dd39308951da4b0da84b19e415c2bb451b60.tar.gz glibc-55a4dd39308951da4b0da84b19e415c2bb451b60.tar.xz glibc-55a4dd39308951da4b0da84b19e415c2bb451b60.zip |
Remove __morecore and __default_morecore
Make the __morecore and __default_morecore symbols compat-only and remove their declarations from the API. Also, include morecore.c directly into malloc.c; this should ideally get merged into malloc in a future cleanup. Reviewed-by: Carlos O'Donell <carlos@redhat.com> Tested-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'malloc/hooks.c')
-rw-r--r-- | malloc/hooks.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/malloc/hooks.c b/malloc/hooks.c index 45c91d6502..4aa6dadcff 100644 --- a/malloc/hooks.c +++ b/malloc/hooks.c @@ -20,6 +20,8 @@ #if SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_34) void weak_variable (*__after_morecore_hook) (void) = NULL; compat_symbol (libc, __after_morecore_hook, __after_morecore_hook, GLIBC_2_0); +void *(*__morecore)(ptrdiff_t); +compat_symbol (libc, __morecore, __morecore, GLIBC_2_0); #endif /* Hooks for debugging versions. The initial hooks just call the |