While working with loader.c, I noticed that dynamic memory allocation functions like malloc are used in the file, but I couldn’t find their definitions within the repository itself (except in run.c).
I’d like to understand:
- Where are these allocation functions expected to be defined or linked from?
- Are they provided by the platform, toolchain, or a specific configuration?
- What is the recommended way to use dynamic memory allocation in other parts of MCUboot or in custom extensions?
- Is there a preferred way to override or customize memory allocation behavior for platforms that don’t support standard malloc?
Any insights or references would be greatly appreciated to help ensure proper integration and alignment with MCUboot’s design principles.
Thanks in advance!
cc: @de-nordic @nordicjm @d3zd3z