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
287: Fix common uses of INSERT AFTER with .bss and .text r=adamgreig a=mattico
Fixes#267Fixes#266
This fixes two related issues.
1. Named sections are often inserted after `.bss` or `.text` in order to have them handled as if they were part of that section. Defining the start/end symbols outside of the section allows this to work.
2. Uninitialized C statics will end up as common symbols which end up in the COMMON input section. If this section is orphaned, it will likely end up placed after `.bss`. C code often expects these statics to be zero initialized. The first change would cause these symbols to be placed before `__ebss` so they will get zeroed by the reset handler. Explicitly placing the common symbols into `.bss` ensures this happens. Users who want uninitialized symbols should use the `.uninit` section.
See rust-embedded/cortex-m-rt#287 (comment)
Co-authored-by: Matt Ickstadt <mattico8@gmail.com>
https://docs.rs/panic-semihosting/0.5.4/panic_semihosting/ is empty, despite there being documentation on the crate.
Caused by
#![cfg(all(target_arch = "arm", target_os = "none"))]
.The fix is to tell docs.rs to use an embedded ARM target (see https://docs.rs/about/metadata).
The text was updated successfully, but these errors were encountered: