mirror of
git://git.musl-libc.org/musl
synced 2025-02-06 05:51:39 +00:00
remove external linkage from __simple_malloc definition
this function is used only as a weak definition for malloc, for static linking in programs which do not call realloc or free. since it had external linkage and was thereby exported in libc.so's dynamic symbol table, --gc-sections was unable to drop it. this was merely an oversight; there's no reason for it to be external, so make it static.
This commit is contained in:
parent
6a851e3ab8
commit
918b1c1d17
@ -8,7 +8,7 @@
|
||||
|
||||
void *__expand_heap(size_t *);
|
||||
|
||||
void *__simple_malloc(size_t n)
|
||||
static void *__simple_malloc(size_t n)
|
||||
{
|
||||
static char *cur, *end;
|
||||
static volatile int lock[2];
|
||||
|
Loading…
Reference in New Issue
Block a user