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 Nathan committed Feb 11, 2024
1 parent b703eb6 commit cde18a3
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 cde18a3

Please sign in to comment.