You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/librustc_target/spec/thumbv4t_none_eabi.rs
+18-12
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,12 @@
1
-
//! Targets the Nintendo Game Boy Advance (GBA),
2
-
//! a handheld game device from 2001.
1
+
//! Targets the ARMv4T, with code as `t32` code by default.
2
+
//!
3
+
//! Primarily of use for the GBA, but usable with other devices too.
3
4
//!
4
5
//! Please ping @Lokathor if changes are needed.
5
6
//!
6
-
//! The target profile assumes that you have the ARM binutils in your path (specifically the linker, `arm-none-eabi-ld`). They can be obtained for free for all major OSes from the ARM developer's website, and they may also be available in your system's package manager
7
+
//! This target profile assumes that you have the ARM binutils in your path (specifically the linker, `arm-none-eabi-ld`). They can be obtained for free for all major OSes from the ARM developer's website, and they may also be available in your system's package manager. Unfortunately, the standard linker that Rust uses (`lld`) only supports as far back as `ARMv5TE`, so we must use the GNU `ld` linker.
7
8
//!
8
-
//! **Important:** This target profile **does not** specify a linker script or the ROM header. You'll still need to provide these yourself to construct a final binary. Generally you'd do this with something like `-Clink-arg=-Tmy_script.ld` and `-Clink-arg=my_crt.o`.
9
+
//! **Important:** This target profile **does not** specify a linker script. You just get the default link script when you build a binary for this target. The default link script is very likely wrong, so you should use `-Clink-arg=-Tmy_script.ld` to override that with a correct linker script.
0 commit comments