Skip to content
This repository was archived by the owner on Nov 28, 2023. It is now read-only.

link.x: Add .sdata2 sections #38

Merged
merged 2 commits into from
Aug 8, 2019
Merged

link.x: Add .sdata2 sections #38

merged 2 commits into from
Aug 8, 2019

Conversation

laanwj
Copy link
Contributor

@laanwj laanwj commented Aug 7, 2019

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.

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.
@laanwj laanwj requested a review from a team as a code owner August 7, 2019 14:29
@Disasm
Copy link
Member

Disasm commented Aug 8, 2019

Thanks! Do you mind bumping the patch-version so we can release it together with the previous fixes?

@laanwj
Copy link
Contributor Author

laanwj commented Aug 8, 2019

Sure, added a commit that bumps the version from 0.6.0 to 0.6.1

@Disasm
Copy link
Member

Disasm commented Aug 8, 2019

Thanks!

Copy link
Member

@Disasm Disasm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bors r+

bors bot added a commit that referenced this pull request Aug 8, 2019
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]>
@bors
Copy link
Contributor

bors bot commented Aug 8, 2019

Build succeeded

@bors bors bot merged commit 0dd0528 into rust-embedded:master Aug 8, 2019
richardeoin added a commit to richardeoin/riscv-rt that referenced this pull request Jul 14, 2020
Similar to rust-embedded#38, riscv compilers may also generate 'small ro data' `.srodata` sections. 

This doesn't appear to be well documented, but see [this blog post](https://www.sifive.com/blog/all-aboard-part-3-linker-relaxation-in-riscv-toolchain) for small amount of context.
@richardeoin richardeoin mentioned this pull request Jul 14, 2020
richardeoin added a commit to richardeoin/riscv-rt that referenced this pull request Jul 15, 2020
Similar to rust-embedded#38, riscv compilers may also generate 'small ro data' `.srodata` sections.

This doesn't appear to be well documented, but see [this blog post](https://www.sifive.com/blog/all-aboard-part-3-linker-relaxation-in-riscv-toolchain) for small amount of context.
bors bot added a commit that referenced this pull request Jul 15, 2020
61: Update link.x r=almindor a=richardeoin

Similar to #38, riscv compilers may also generate 'small ro data' `.srodata` sections. 

This doesn't appear to be well documented, but see [this blog post](https://www.sifive.com/blog/all-aboard-part-3-linker-relaxation-in-riscv-toolchain) for small amount of context.

Co-authored-by: Richard Meadows <[email protected]>
Disasm pushed a commit that referenced this pull request Jul 15, 2020
Similar to #38, riscv compilers may also generate 'small ro data' `.srodata` sections.

This doesn't appear to be well documented, but see [this blog post](https://www.sifive.com/blog/all-aboard-part-3-linker-relaxation-in-riscv-toolchain) for small amount of context.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants