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

Commit a1792e2

Browse files
Merge #61
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]>
2 parents fb76ec7 + fff407b commit a1792e2

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1010
### Changed
1111

1212
- Preserve `.eh_frame` and `.eh_frame_hdr` sections
13+
- Place `.srodata` and `.srodata.*` sections in `.rodata`
1314

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

link.x

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ SECTIONS
5757

5858
.rodata : ALIGN(4)
5959
{
60+
*(.srodata .srodata.*);
6061
*(.rodata .rodata.*);
6162

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

0 commit comments

Comments
 (0)