From 31c000b07b1dec16722c54467095b9cde46b3b07 Mon Sep 17 00:00:00 2001 From: thisiskeithb <13375512+thisiskeithb@users.noreply.github.com> Date: Thu, 28 Dec 2023 05:44:23 -0800 Subject: [PATCH] Prevent "LOAD segment with RWX permissions" warning This "issue" has always existed, but newer gccarmnoneeabi versions throw a warning. --- ini/stm32g0.ini | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ini/stm32g0.ini b/ini/stm32g0.ini index 21248da604f4..db6a2038a7eb 100644 --- a/ini/stm32g0.ini +++ b/ini/stm32g0.ini @@ -37,7 +37,9 @@ platform_packages = framework-arduinoststm32@~4.20600.231001 board = marlin_BTT_EBB42_V1_1 board_build.offset = 0x0000 board_upload.offset_address = 0x08000000 -build_flags = ${stm32_variant.build_flags} ${stm32g0_I2C2.build_flags} -flto +build_flags = ${stm32_variant.build_flags} ${stm32g0_I2C2.build_flags} + -flto + -Wl,--no-warn-rwx-segment debug_tool = stlink upload_protocol = dfu upload_command = dfu-util -a 0 -s 0x08000000:leave -D "$SOURCE" @@ -58,6 +60,7 @@ build_flags = ${stm32_variant.build_flags} -DSERIAL_RX_BUFFER_SIZE=1024 -DSERIAL_TX_BUFFER_SIZE=1024 -DTIMER_SERVO=TIM3 -DTIMER_TONE=TIM4 -DSTEP_TIMER_IRQ_PRIO=0 + -Wl,--no-warn-rwx-segment upload_protocol = stlink debug_tool = stlink @@ -116,6 +119,7 @@ build_flags = ${stm32_variant.build_flags} -DSERIAL_RX_BUFFER_SIZE=1024 -DSERIAL_TX_BUFFER_SIZE=1024 -DTIMER_SERVO=TIM3 -DTIMER_TONE=TIM4 -DSTEP_TIMER_IRQ_PRIO=0 + -Wl,--no-warn-rwx-segment upload_protocol = stlink debug_tool = stlink