From 09ad5d4e86530cb556c0ade83e0c0574a248e429 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Wed, 23 Mar 2022 15:38:47 +0100 Subject: [PATCH 1/2] v0.1.6 --- CHANGELOG.md | 18 ++++++++++++++++-- Cargo.toml | 2 +- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fbd719f..f9066a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,10 +7,24 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] -- [#60]: Update to Rust 2021 🎉 -- [#58] Print a message when linking normally fails +## [v0.1.6] - 2022-03-23 + +### Fixed + +- [#63]: Handles `memory.x` overrides by searching in the current working directory first. + +[#63]: https://github.com/knurling-rs/flip-link/pull/63 + +### Changed + +- [#60]: Update to Rust 2021 🎉. Requires Rust 1.56+ to build [#60]: https://github.com/knurling-rs/flip-link/pull/60 + +### Added + +- [#58] Print a message when linking normally fails. This makes it clearer that the failure is not due to `flip-link`. + [#58]: https://github.com/knurling-rs/flip-link/pull/58 ## [v0.1.5] - 2021-08-27 diff --git a/Cargo.toml b/Cargo.toml index 3cdb8d7..7fe16bb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ keywords = ["arm", "cortex-m", "stack-protection"] license = "MIT OR Apache-2.0" name = "flip-link" repository = "https://github.com/knurling-rs/flip-link" -version = "0.1.5" +version = "0.1.6" readme = "README.md" [dependencies] From a4c797f8c10c2fcdc8f47b6b03649de117653426 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Wed, 23 Mar 2022 15:41:55 +0100 Subject: [PATCH 2/2] appease clippy --- Cargo.lock | 2 +- src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e508132..5a249c7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -62,7 +62,7 @@ dependencies = [ [[package]] name = "flip-link" -version = "0.1.5" +version = "0.1.6" dependencies = [ "assert_cmd", "env_logger", diff --git a/src/main.rs b/src/main.rs index a1cbceb..02e189f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -325,7 +325,7 @@ fn find_ram_in_linker_script(linker_script: &str) -> Option { for segment in segments { let boundary_pos = segment .find(|c| c == 'K' || c == 'M') - .unwrap_or_else(|| segment.len()); + .unwrap_or(segment.len()); let length: u64 = tryc!(segment[..boundary_pos].parse()); let raw = &segment[boundary_pos..]; let mut chars = raw.chars();