arch/arm64: sync with mainline change

Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
chao an 2023-08-31 20:27:12 +08:00 committed by Xiang Xiao
parent a42448feb4
commit ce6330bf29

View File

@ -166,10 +166,10 @@ endif
ifeq ($(CONFIG_ARCH_TOOLCHAIN_GNU),y) ifeq ($(CONFIG_ARCH_TOOLCHAIN_GNU),y)
ifeq ($(GCCVER),) ifeq ($(GCCVER),)
export GCCVER := $(shell $(CC) --version | grep gcc | sed -r "s/.* ([0-9]+\.[0-9]+).*/\1/") export GCCVER := $(shell $(CC) --version | grep gcc | sed -r "s/.* ([0-9]+\.[0-9]+).*/\1/" | cut -d'.' -f1)
endif endif
ifeq ($(GCCVER),12.2) ifeq ($(GCCVER),12)
LDFLAGS += --no-warn-rwx-segments LDFLAGS += --no-warn-rwx-segments
endif endif
endif endif