X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fmalloc.h;h=8175c75920cfe0ac9a1158e253f9b3a477cf12da;hb=ceb04e1a5d9fb956190d9f5bcc32da0f9291d416;hp=f4da9e6dddb67e2ccb78464558caf5aa85f5ce74;hpb=536266231a340c0c5e571e1012bf3f8fc835b251;p=u-boot diff --git a/include/malloc.h b/include/malloc.h index f4da9e6ddd..8175c75920 100644 --- a/include/malloc.h +++ b/include/malloc.h @@ -872,7 +872,7 @@ extern Void_t* sbrk(); #else -#ifdef CONFIG_SYS_MALLOC_SIMPLE +#if CONFIG_IS_ENABLED(SYS_MALLOC_SIMPLE) #define malloc malloc_simple #define realloc realloc_simple #define memalign memalign_simple @@ -914,6 +914,7 @@ int initf_malloc(void); /* Simple versions which can be used when space is tight */ void *malloc_simple(size_t size); +#pragma GCC visibility push(hidden) # if __STD_C Void_t* mALLOc(size_t); @@ -945,6 +946,7 @@ int mALLOPt(); struct mallinfo mALLINFo(); # endif #endif +#pragma GCC visibility pop /* * Begin and End of memory area for malloc(), and current "brk"