From ce38458d9718a122c99ca5f43c9b61e21526e711 Mon Sep 17 00:00:00 2001 From: rmikielis Date: Mon, 19 May 2025 15:37:46 +0200 Subject: [PATCH] Makefile_aliases --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index fbc7d08e7..2e6404a26 100644 --- a/Makefile +++ b/Makefile @@ -28,6 +28,9 @@ include ../phoenix-rtos-build/Makefile.common CFLAGS += -I. -ffreestanding CPPFLAGS += -DVERSION=\"$(VERSION)\" -DRELEASE=\"$(RELEASE)\" -DTARGET_FAMILY=\"$(TARGET_FAMILY)\" +# Add aliases to standard C library functions as required by GCC +LDFLAGS += -Wl,--defsym=memcpy=hal_memcpy,--defsym=memcmp=hal_memcmp,--defsym=memset=hal_memset + # uncomment to enable stack canary checking # CPPFLAGS += -DSTACK_CANARY