Create dlmalloc component

Create CMake component and add malloc wrapper for configuring dlmalloc.

Signed-off-by: Imre Kis <imre.kis@arm.com>
Change-Id: I43d65baf7cb3598ee7ea763151fd360f1a37b1a7
diff --git a/components/common/dlmalloc/component.cmake b/components/common/dlmalloc/component.cmake
new file mode 100644
index 0000000..909279c
--- /dev/null
+++ b/components/common/dlmalloc/component.cmake
@@ -0,0 +1,15 @@
+#-------------------------------------------------------------------------------
+# Copyright (c) 2024, Arm Limited and Contributors. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#-------------------------------------------------------------------------------
+
+target_sources(${TGT} PRIVATE
+	"${CMAKE_CURRENT_LIST_DIR}/malloc_wrapper.c"
+)
+
+# TODO: remove workaround
+set_source_files_properties(
+	"${CMAKE_CURRENT_LIST_DIR}/malloc_wrapper.c" PROPERTIES COMPILE_FLAGS
+	"-fno-builtin"
+)