Device: Fixed AC6 scatter file for ARMv81MML.
Remove the ARM_LIB_HEAP section completely if __HEAP_SIZE is zero.
@@ -64,8 +64,10 @@ LR_ROM __RO_BASE __RO_SIZE { ; load region size_region
.ANY (+RW +ZI)
}
+#if __HEAP_SIZE > 0
ARM_LIB_HEAP __HEAP_BASE EMPTY __HEAP_SIZE { ; Reserve empty region for heap
}
+#endif
ARM_LIB_STACK __STACK_TOP EMPTY -__STACK_SIZE { ; Reserve empty region for stack
}
