Hello,
In the project im involved in, we're using nxp product that runs FreeRTOS as os. As our application does not allocate dynamic memory using the ordinary mallocs, I want to remove the heap allocation that the linker puts in the binary.
The method for this is to put the relevant ldt file in the linkscripts folder, which I did- specifically by overriding the heap size to be zero. this works.
How ever, it will be better for me if I could just discard the symbol of the heap from the binary (heap_symbol which is set to _pvHeapStart) because otherwise this symbol gets its address, and it is possible to override memory using its address. My problem is that when im just discarding it I get references errors of gcc files (_cr_sbrk.c) expecting this reference.
I would like to ask for a help reaching my goal which is safely remove the heap allocation from the linker.
Thanks