浏览代码

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 <962920+richardeoin@users.noreply.github.com>
bors[bot] 4 年之前
父节点
当前提交
4a89d181fb
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1 0
      riscv-rt/CHANGELOG.md
  2. 1 0
      riscv-rt/link.x

+ 1 - 0
riscv-rt/CHANGELOG.md

@@ -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
 

+ 1 - 0
riscv-rt/link.x

@@ -57,6 +57,7 @@ SECTIONS
 
   .rodata : ALIGN(4)
   {
+    *(.srodata .srodata.*);
     *(.rodata .rodata.*);
 
     /* 4-byte align the end (VMA) of this section.