aboutsummaryrefslogtreecommitdiff
path: root/cortex-m-rt/src/lib.rs
diff options
context:
space:
mode:
authorGravatar Todd Stellanova <tstellanova@users.noreply.github.com> 2020-07-30 22:26:35 -0700
committerGravatar Todd Stellanova <tstellanova@users.noreply.github.com> 2020-07-30 22:26:35 -0700
commitd1ddbce570e6b5d68036a7f2d33b749c70452fc4 (patch)
treec4a2ecbb1d5c2a3de229c039dbb80e0a4fdeaf66 /cortex-m-rt/src/lib.rs
parent0fdefc9e729f5d039d6cfbcbc099105e9b40f902 (diff)
downloadcortex-m-d1ddbce570e6b5d68036a7f2d33b749c70452fc4.tar.gz
cortex-m-d1ddbce570e6b5d68036a7f2d33b749c70452fc4.tar.zst
cortex-m-d1ddbce570e6b5d68036a7f2d33b749c70452fc4.zip
more specific ref to link_section attributes
Diffstat (limited to '')
-rw-r--r--cortex-m-rt/src/lib.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/cortex-m-rt/src/lib.rs b/cortex-m-rt/src/lib.rs
index d078a91..fe4ee20 100644
--- a/cortex-m-rt/src/lib.rs
+++ b/cortex-m-rt/src/lib.rs
@@ -392,9 +392,11 @@
//! Some microcontrollers provide additional memory regions beyond RAM and FLASH.
//! For example, some STM32 devices provide "CCM" or core-coupled RAM that is
//! only accessible from the core. In order to access these using
-//! `#[link_section=".foo"]` from your code, you need to modify `memory.x`
+//! [`link_section`] attributes from your code, you need to modify `memory.x`
//! to declare the additional sections:
//!
+//! [`link_section`]: https://doc.rust-lang.org/reference/abi.html#the-link_section-attribute
+//!
//! ```text
//! MEMORY
//! {