X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=include%2Fmalloc.h;h=8175c75920cfe0ac9a1158e253f9b3a477cf12da;hb=d5a42f66344957a6611549881887ebbffa03fe99;hp=5df634873f147f93fb444b9621abf07e1e6e21e1;hpb=85bafb6da4dddfffa78479aa49a72ae48578a4ce;p=oweals%2Fu-boot.git diff --git a/include/malloc.h b/include/malloc.h index 5df634873f..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 @@ -906,11 +906,15 @@ void *realloc_simple(void *ptr, size_t size); #endif +/* Set up pre-relocation malloc() ready for use */ +int initf_malloc(void); + /* Public routines */ /* 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); @@ -942,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"