File tree Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -312,14 +312,18 @@ else
312
312
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105523
313
313
314
314
ifeq ($(CONFIG_ARCH_TOOLCHAIN_GNU),y)
315
- ifeq ($(GCCVER),)
316
- export GCCVER := $(shell $(CC) --version | grep gcc | sed -E "s/.* ([0-9]+\.[0-9]+).*/\1/" | cut -d'.' -f1)
317
- endif
318
- ifeq ($(shell expr "$(GCCVER)" \>= 12), 1)
319
- ARCHOPTIMIZATION += --param=min-pagesize=0
320
- LDFLAGS += --print-memory-usage
321
- ifeq ($(CONFIG_ARCH_RAMFUNCS),y)
322
- LDFLAGS += --no-warn-rwx-segments
315
+ ifeq ($(CONFIG_ARCH_TOOLCHAIN_CLANG),)
316
+ ifeq ($(GCCVER),)
317
+ export GCCVER := $(shell $(CC) --version | grep gcc | sed -E "s/.* ([0-9]+\.[0-9]+).*/\1/" | cut -d'.' -f1)
318
+ endif
319
+ ifeq ($(shell expr "$(GCCVER)" \>= 12), 1)
320
+ ARCHOPTIMIZATION += --param=min-pagesize=0
321
+ LDFLAGS += --print-memory-usage
322
+ ifeq ($(CONFIG_ARCH_RAMFUNCS),y)
323
+ LDFLAGS += --no-warn-rwx-segments
324
+ else ifeq ($(CONFIG_BOOT_RUNFROMFLASH),)
325
+ LDFLAGS += --no-warn-rwx-segments
326
+ endif
323
327
endif
324
328
endif
325
329
endif
Original file line number Diff line number Diff line change @@ -207,7 +207,6 @@ ifeq ($(CONFIG_ARCH_TOOLCHAIN_GNU),y)
207
207
208
208
endif
209
209
ifeq ($(shell expr "$(GCCVER)" \>= 12), 1)
210
- LDFLAGS += --no-warn-rwx-segments
211
210
LDFLAGS += --print-memory-usage
212
211
endif
213
212
endif
You can’t perform that action at this time.
0 commit comments