Skip to content

Commit

Permalink
chibios: disable RWX segment warning on newer GNU lds (qmk#22471)
Browse files Browse the repository at this point in the history
  • Loading branch information
zvecr authored and Lorenzo Castoldi committed Dec 27, 2023
1 parent 23c1484 commit 6081e0c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions platforms/chibios/platform.mk
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,11 @@ HEX = $(OBJCOPY) -O $(FORMAT)
EEP =
BIN = $(OBJCOPY) -O binary

# disable warning about RWX triggered by ChibiOS linker scripts
ifeq ("$(shell echo "int main(){}" | $(CC) -shared -Wl,--no-warn-rwx-segments -x c - -o /dev/null 2>&1)", "")
SHARED_LDFLAGS += -Wl,--no-warn-rwx-segments
endif

##############################################################################
# Make targets
#
Expand Down

0 comments on commit 6081e0c

Please sign in to comment.