Define heap in linker and place other sections correctly

This commit is contained in:
Matte23
2024-11-03 19:41:58 +01:00
parent d05bbdabc0
commit d0f42d43ae
3 changed files with 46 additions and 14 deletions

View File

@@ -1,4 +1,9 @@
#include <stddef.h>
#include <stdint.h>
typedef struct {
void * wilderness;
} HeapArena;
void init_allocator();
void* malloc (size_t size);