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

Commit 16f858a

Browse files
authored
Update link.x
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.
1 parent 93a55a2 commit 16f858a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)