From 235390d95cc03fd7db6d58f426e1d53de7c136c9 Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Wed, 7 Aug 2019 14:21:57 +0000 Subject: [PATCH 1/2] link.x: Add .sdata2 sections Clang doesn't seem to generate these, but GCC does. I'm trying to link secp256k1, which is a C library, to my Rust code so the linker script needs to include these sections too. --- link.x | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/link.x b/link.x index 529bc75..ae4e7a8 100644 --- a/link.x +++ b/link.x @@ -57,7 +57,7 @@ SECTIONS _sdata = .; /* Must be called __global_pointer$ for linker relaxations to work. */ PROVIDE(__global_pointer$ = . + 0x800); - *(.sdata .sdata.*); + *(.sdata .sdata.* .sdata2 .sdata2.*); *(.data .data.*); . = ALIGN(4); _edata = .; From 0dd052837b42053bdfa98d5d8cd375269040e3f3 Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Thu, 8 Aug 2019 19:56:21 +0200 Subject: [PATCH 2/2] Bump version from 0.6.0 to 0.6.1 --- Cargo.toml | 2 +- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 2ee24a5..6067e00 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "riscv-rt" -version = "0.6.0" +version = "0.6.1" repository = "https://github.com/rust-embedded/riscv-rt" authors = ["The RISC-V Team "] categories = ["embedded", "no-std"] diff --git a/src/lib.rs b/src/lib.rs index 17dfc36..5f7b568 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -30,7 +30,7 @@ //! $ # add this crate as a dependency //! $ edit Cargo.toml && cat $_ //! [dependencies] -//! riscv-rt = "0.6.0" +//! riscv-rt = "0.6.1" //! panic-halt = "0.2.0" //! //! $ # memory layout of the device