aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2022-08-15 21:44:14 -0700
committerChris Packham <judge.packham@gmail.com>2022-08-19 22:03:27 +1200
commite632eb00b6fa55f833e53afdf505b50473f77d4b (patch)
treefbeb6be6d144e079d2f0ce40e28d73e6662573aa
parentd3acee9673af18fcbcc0de6d8cbb0e2466d0e910 (diff)
downloadcrosstool-ng-e632eb00b6fa55f833e53afdf505b50473f77d4b.tar.gz
crosstool-ng-e632eb00b6fa55f833e53afdf505b50473f77d4b.tar.bz2
crosstool-ng-e632eb00b6fa55f833e53afdf505b50473f77d4b.zip
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 <keithp@keithp.com>
-rw-r--r--samples/arm-none-eabi/crosstool.config1
1 files changed, 1 insertions, 0 deletions
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"