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 zgagnon committed Dec 15, 2023
1 parent d3d2fe6 commit 4b64f7a
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 4b64f7a

Please sign in to comment.