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

Commit

Permalink
Merge #61
Browse files Browse the repository at this point in the history
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 <962920+richardeoin@users.noreply.github.com>
  • Loading branch information
bors[bot] and richardeoin committed Jul 15, 2020
2 parents fb76ec7 + fff407b commit a1792e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Changed

- Preserve `.eh_frame` and `.eh_frame_hdr` sections
- Place `.srodata` and `.srodata.*` sections in `.rodata`

## [v0.7.1] - 2020-06-02

Expand Down
1 change: 1 addition & 0 deletions link.x
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ SECTIONS

.rodata : ALIGN(4)
{
*(.srodata .srodata.*);
*(.rodata .rodata.*);

/* 4-byte align the end (VMA) of this section.
Expand Down

0 comments on commit a1792e2

Please sign in to comment.