From 4183f39eed524f3845fe74a6458fbc24e1b17275 Mon Sep 17 00:00:00 2001 From: Hubert Badocha Date: Tue, 10 Sep 2024 17:21:55 +0200 Subject: [PATCH] Makefile.common: disable RWX segment warning JIRA: RTOS-912 --- Makefile.common | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile.common b/Makefile.common index e7062f0c..7490df55 100644 --- a/Makefile.common +++ b/Makefile.common @@ -85,6 +85,13 @@ $(info cleaning targets, make parallelism disabled) .NOTPARALLEL: endif +# Do not warn about RWX segments. +# binutils >= 2.39 required +LD_VERSION_MINOR := $(shell $(LD) $(LDFLAGS_PREFIX)--version 2> /dev/null | grep -Eo "[0-9][0-9]$$") +ifeq ($(shell expr $(LD_VERSION_MINOR) ">=" 39), 1) +LDFLAGS += $(LDFLAGS_PREFIX)--no-warn-rwx-segments +endif + # # generic *FLAGS options #