Skip to content

Commit

Permalink
Makefile.common: disable RWX segment warning
Browse files Browse the repository at this point in the history
JIRA: RTOS-912
  • Loading branch information
badochov committed Oct 2, 2024
1 parent 2f5cb01 commit 4183f39
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
Expand Down

0 comments on commit 4183f39

Please sign in to comment.