Skip to content

Commit c9f70a2

Browse files
author
Hubert Badocha
committed
Makefile.common: disable RWX segment warning
JIRA: RTOS-912
1 parent 1388f23 commit c9f70a2

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Makefile.common

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,13 @@ $(info cleaning targets, make parallelism disabled)
8585
.NOTPARALLEL:
8686
endif
8787

88+
# Do not warn about RWX segments.
89+
# binutils >= 2.39 required
90+
LD_VERSION_MINOR := $(shell $(LD) $(LDFLAGS_PREFIX)--version 2> /dev/null | grep -Eo "[0-9][0-9]$$")
91+
ifeq ($(shell expr $(LD_VERSION_MINOR) ">=" 39), 1)
92+
LDFLAGS += $(LDFLAGS_PREFIX)--no-warn-rwx-segments
93+
endif
94+
8895
#
8996
# generic *FLAGS options
9097
#

0 commit comments

Comments
 (0)