Also added (commented out) debug to malloc() in libc
BIN = ld-acess.so
EXTRABIN := libld-acess.so
-CFLAGS = -g -Wall -fno-builtin -fno-leading-underscore -fno-stack-protector -fPIC
+CFLAGS = -g -Wall -fno-builtin -fno-leading-underscore -fno-stack-protector
CFLAGS += $(CPPFLAGS)
LDFLAGS = -g -T arch/$(ARCHDIR).ld -Map map.txt --export-dynamic
void *bestMatchAddr = 0;\r
heap_head *curBlock;\r
\r
+// _SysDebug("&_heap_start = %p, _heap_start = %p", &_heap_start, _heap_start);\r
// Initialise Heap\r
if(_heap_start == NULL)\r
{\r
}\r
\r
curBlock = _heap_start;\r
+// _SysDebug("_heap_start = %p", _heap_start);\r
\r
bestSize = bytes + sizeof(heap_head) + sizeof(heap_foot) + BLOCK_SIZE - 1;\r
bestSize = (bestSize/BLOCK_SIZE)*BLOCK_SIZE; //Round up to block size\r