Skip to content

Commit c757933

Browse files
bors[bot]laanwj
andcommitted
Merge #38
38: link.x: Add .sdata2 sections r=Disasm a=laanwj Clang doesn't seem to generate these, but GCC (8.3.0 at least) 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. Co-authored-by: Wladimir J. van der Laan <[email protected]>
2 parents 0427294 + e962e8c commit c757933

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

riscv-rt/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "riscv-rt"
3-
version = "0.6.0"
3+
version = "0.6.1"
44
repository = "https://github.com/rust-embedded/riscv-rt"
55
authors = ["The RISC-V Team <[email protected]>"]
66
categories = ["embedded", "no-std"]

riscv-rt/link.x

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ SECTIONS
5757
_sdata = .;
5858
/* Must be called __global_pointer$ for linker relaxations to work. */
5959
PROVIDE(__global_pointer$ = . + 0x800);
60-
*(.sdata .sdata.*);
60+
*(.sdata .sdata.* .sdata2 .sdata2.*);
6161
*(.data .data.*);
6262
. = ALIGN(4);
6363
_edata = .;

riscv-rt/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
//! $ # add this crate as a dependency
3131
//! $ edit Cargo.toml && cat $_
3232
//! [dependencies]
33-
//! riscv-rt = "0.6.0"
33+
//! riscv-rt = "0.6.1"
3434
//! panic-halt = "0.2.0"
3535
//!
3636
//! $ # memory layout of the device

0 commit comments

Comments
 (0)