From 1d92abb1a7b772293a65de2e58a799ce0deab4c7 Mon Sep 17 00:00:00 2001 From: Andrew Walbran Date: Fri, 10 Feb 2023 04:06:18 +0000 Subject: [PATCH] Note lack of main function. --- src/bare-metal/minimal.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bare-metal/minimal.md b/src/bare-metal/minimal.md index 3b575d2c..d96ff34d 100644 --- a/src/bare-metal/minimal.md +++ b/src/bare-metal/minimal.md @@ -19,5 +19,8 @@ fn panic(_panic: &PanicInfo) -> ! { * It can also be provided by another crate, such as `panic-halt`. * Depending on the target, you may need to compile with `panic = "abort"` to avoid an error about `eh_personality`. +* Note that there is no `main` or any other entry point; it's up to you to define your own entry + point. This will typically involve a linker script and some assembly code to set things up ready + for Rust code to run.