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
Right now, if layout.ld or target.json is changed, the firmware will
not automatically relink when running "cargo xbuild". This can make
working on layout.ld quite tedious, as you have to manually change the
Rust code to get the firmware to rebuild.
We solve this by adding a tiny build script which simply rebuilds the
program if either layout.ld or target.json changes.
We also stop using "-s" (aka "--strip-all") in the target options.
Instead, we add a second /DISCARD/ section in the linker script. This
puts all of our logic about sections in a single place. It also makes
it easier for a developer to get the symbols (if they want them).
Signed-off-by: Joe Richey <[email protected]>
0 commit comments