44//!
55//! Please ping @Lokathor if changes are needed.
66//!
7- //! This target profile assumes that you have the ARM binutils in your path
8- //! (specifically the linker, `arm-none-eabi-ld`). They can be obtained for free
9- //! for all major OSes from the ARM developer's website, and they may also be
10- //! available in your system's package manager. Unfortunately, the standard
11- //! linker that Rust uses (`lld`) only supports as far back as `ARMv5TE`, so we
12- //! must use the GNU `ld` linker.
13- //!
147//! **Important:** This target profile **does not** specify a linker script. You
158//! just get the default link script when you build a binary for this target.
169//! The default link script is very likely wrong, so you should use
1710//! `-Clink-arg=-Tmy_script.ld` to override that with a correct linker script.
1811
19- use crate :: spec:: { cvs, Cc , FramePointer , LinkerFlavor , Lld } ;
12+ use crate :: spec:: { cvs, FramePointer } ;
2013use crate :: spec:: { PanicStrategy , RelocModel , Target , TargetOptions } ;
2114
2215pub fn target ( ) -> Target {
@@ -36,8 +29,6 @@ pub fn target() -> Target {
3629 data_layout : "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64" . into ( ) ,
3730 options : TargetOptions {
3831 abi : "eabi" . into ( ) ,
39- linker_flavor : LinkerFlavor :: Gnu ( Cc :: No , Lld :: No ) ,
40- linker : Some ( "arm-none-eabi-ld" . into ( ) ) ,
4132
4233 // extra args passed to the external assembler (assuming `arm-none-eabi-as`):
4334 // * activate t32/a32 interworking
0 commit comments