4
4
//!
5
5
//! Please ping @Lokathor if changes are needed.
6
6
//!
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
- //!
14
7
//! **Important:** This target profile **does not** specify a linker script. You
15
8
//! just get the default link script when you build a binary for this target.
16
9
//! The default link script is very likely wrong, so you should use
17
10
//! `-Clink-arg=-Tmy_script.ld` to override that with a correct linker script.
18
11
19
- use crate :: spec:: { cvs, Cc , FramePointer , LinkerFlavor , Lld } ;
12
+ use crate :: spec:: { cvs, FramePointer } ;
20
13
use crate :: spec:: { PanicStrategy , RelocModel , Target , TargetOptions } ;
21
14
22
15
pub fn target ( ) -> Target {
@@ -36,8 +29,6 @@ pub fn target() -> Target {
36
29
data_layout : "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64" . into ( ) ,
37
30
options : TargetOptions {
38
31
abi : "eabi" . into ( ) ,
39
- linker_flavor : LinkerFlavor :: Gnu ( Cc :: No , Lld :: No ) ,
40
- linker : Some ( "arm-none-eabi-ld" . into ( ) ) ,
41
32
42
33
// extra args passed to the external assembler (assuming `arm-none-eabi-as`):
43
34
// * activate t32/a32 interworking
0 commit comments