aboutsummaryrefslogtreecommitdiff
path: root/cortex-m-rt/link.x.in
diff options
context:
space:
mode:
authorGravatar Gabriel Smith <ga29smith@gmail.com> 2018-08-04 01:04:36 -0400
committerGravatar Gabriel Smith <ga29smith@gmail.com> 2018-08-12 15:29:08 -0400
commit06ce316ad44f6eaac497d43c392703e326b50944 (patch)
tree8866d67c9f9168443d500312bc887fb6d101c4ac /cortex-m-rt/link.x.in
parente6a6769166922299937f490669590096f86dc298 (diff)
downloadcortex-m-06ce316ad44f6eaac497d43c392703e326b50944.tar.gz
cortex-m-06ce316ad44f6eaac497d43c392703e326b50944.tar.zst
cortex-m-06ce316ad44f6eaac497d43c392703e326b50944.zip
Remove the pre-init feature and provide a default for the __pre_init symbol
Signed-off-by: Gabriel Smith <ga29smith@gmail.com>
Diffstat (limited to 'cortex-m-rt/link.x.in')
-rw-r--r--cortex-m-rt/link.x.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/cortex-m-rt/link.x.in b/cortex-m-rt/link.x.in
index dfcf262..02cdb32 100644
--- a/cortex-m-rt/link.x.in
+++ b/cortex-m-rt/link.x.in
@@ -51,6 +51,11 @@ PROVIDE(UserHardFault = DefaultUserHardFault);
/* # Interrupt vectors */
EXTERN(__INTERRUPTS); /* `static` variable similar to `__EXCEPTIONS` */
+/* # Pre-initialization function */
+/* If the user overrides this using the `pre_init!` macro or by creating a `__pre_init` function,
+ then the function this points to will be called before the RAM is initialized. */
+PROVIDE(__pre_init = 0);
+
/* # Sections */
SECTIONS
{