ld: fix warning reported by GCC 12 linker

warning: nuttx has a LOAD segment with RWX permissions

Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
Petro Karashchenko 2023-03-26 16:33:53 +03:00 committed by archer
parent 0eae218b49
commit 6c6a54b0c9

View File

@ -236,6 +236,9 @@ else
ifeq ($(GCCVER),12.2.1)
ARCHOPTIMIZATION += --param=min-pagesize=0
ifeq ($(CONFIG_ARCH_RAMFUNCS),y)
LDFLAGS += --no-warn-rwx-segments
endif
endif
endif