From e7cb1b4fb1edc98383e0eb2aed1870cf673599c7 Mon Sep 17 00:00:00 2001 From: Masayuki Ishikawa Date: Mon, 14 Feb 2022 13:55:08 +0900 Subject: [PATCH] arch: rt8920c: Move -fno-common option to ARCHCFLAGS/ARCHCXXFLAGS Summary: - Apply the same style as sabre-6quad Impact: - None Testing: - Build only Signed-off-by: Masayuki Ishikawa --- arch/arm/src/rtl8720c/Toolchain.defs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm/src/rtl8720c/Toolchain.defs b/arch/arm/src/rtl8720c/Toolchain.defs index bad72f9749..a12fd15a05 100644 --- a/arch/arm/src/rtl8720c/Toolchain.defs +++ b/arch/arm/src/rtl8720c/Toolchain.defs @@ -50,8 +50,8 @@ ifneq ($(CONFIG_ARMV8M_STACKCHECK),y) endif endif -ARCHCFLAGS = -fno-builtin -march=armv8-m.main+dsp -mthumb -mfloat-abi=soft -D__thumb2__ -g -gdwarf-3 -Os -fno-tree-scev-cprop -ARCHCXXFLAGS = -fno-builtin -nostdinc++ -std=c++11 +ARCHCFLAGS = -fno-common -fno-builtin -march=armv8-m.main+dsp -mthumb -mfloat-abi=soft -D__thumb2__ -g -gdwarf-3 -Os -fno-tree-scev-cprop +ARCHCXXFLAGS = -fno-common -fno-builtin -nostdinc++ -std=c++11 ifneq ($(CONFIG_CXX_EXCEPTION),y) ARCHCXXFLAGS += -fno-exceptions -fcheck-new -fno-rtti endif @@ -66,15 +66,15 @@ AFLAGS := $(CFLAGS) -D__ASSEMBLY__ # ELF module definitions -CELFFLAGS = $(CFLAGS) -mlong-calls -fno-common -CXXELFFLAGS = $(CXXFLAGS) -mlong-calls -fno-common +CELFFLAGS = $(CFLAGS) -mlong-calls +CXXELFFLAGS = $(CXXFLAGS) -mlong-calls AELFFLAGS = $(AFLAGS) LDELFFLAGS = -r -e main -Bstatic $(LDFLAGS) LDELFFLAGS += -T $(TOPDIR)/binfmt/libelf/gnu-elf.ld # Loadable module definitions -CMODULEFLAGS = $(CFLAGS) -mlong-calls -fno-common +CMODULEFLAGS = $(CFLAGS) -mlong-calls LDMODULEFLAGS = -r -e module_initialize $(LDFLAGS) ifeq ($(WINTOOL),y)