Skip to content

Conversation

mfil
Copy link
Contributor

@mfil mfil commented Oct 2, 2025

The docs say to pass the -nostartfiles flag to the linker. This is a leftover from when GCC was used as the linker. This pull request fixes the build command so that it works with the default rust-ldd linker.

While at it, add a sample .cargo/config.toml file.

Fixes #610

The docs say to pass the -nostartfiles flag to the linker. This is a
leftover from when GCC was used as the linker. This fixes the build
command so that it works with the default rust-ldd linker.

While at it, add a sample .cargo/config.toml file.
@jonathanpallant jonathanpallant added this pull request to the merge queue Oct 6, 2025
Merged via the queue into rust-embedded:master with commit edc79e2 Oct 6, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cortex-m-rt Documentation: -nostartfiles linker option does not exist in rust-lld

2 participants