From cd11cdb88cc064562519304f2412b50f8b37180a Mon Sep 17 00:00:00 2001 From: "William D. Jones" Date: Fri, 4 Jun 2021 20:37:53 -0400 Subject: [PATCH] msp430 linker does not accept -znoexecstack. Set linker_is_gnu to false as workaround for now. --- compiler/rustc_target/src/spec/msp430_none_elf.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/rustc_target/src/spec/msp430_none_elf.rs b/compiler/rustc_target/src/spec/msp430_none_elf.rs index cc2578aa578..6e3a241a86e 100644 --- a/compiler/rustc_target/src/spec/msp430_none_elf.rs +++ b/compiler/rustc_target/src/spec/msp430_none_elf.rs @@ -17,6 +17,7 @@ pub fn target() -> Target { // dependency on this specific gcc. asm_args: vec!["-mcpu=msp430".to_string()], linker: Some("msp430-elf-gcc".to_string()), + linker_is_gnu: false, // There are no atomic CAS instructions available in the MSP430 // instruction set, and the LLVM backend doesn't currently support