From e632eb00b6fa55f833e53afdf505b50473f77d4b Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Mon, 15 Aug 2022 21:44:14 -0700 Subject: [PATCH] arm-none-eabi: Disable RWX segment warning in binutils This warning is designed to catch likely vulnerabilities in code run under memory protection -- allowing execution from memory which is writable. However, embedded arm systems frequently require placing code in RAM, for performance or functionality reasons. Disable the warning that recent versions of binutils has added. Signed-off-by: Keith Packard --- samples/arm-none-eabi/crosstool.config | 1 + 1 file changed, 1 insertion(+) diff --git a/samples/arm-none-eabi/crosstool.config b/samples/arm-none-eabi/crosstool.config index c4411b04..c8c7c822 100644 --- a/samples/arm-none-eabi/crosstool.config +++ b/samples/arm-none-eabi/crosstool.config @@ -12,3 +12,4 @@ CT_COMP_LIBS_PICOLIBC=y CT_MULTILIB=y CT_CC_GCC_MULTILIB_LIST="rmprofile aprofile" CT_TARGET_VENDOR="none" +CT_BINUTILS_EXTRA_CONFIG_ARRAY="--disable-warn-rwx-segments"