소스 검색

Fix .data alignment issue

Vadim Kaushan 5 년 전
부모
커밋
03a3639de8
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      riscv-rt/link.x

+ 5 - 0
riscv-rt/link.x

@@ -50,6 +50,11 @@ SECTIONS
   .rodata : ALIGN(4)
   {
     *(.rodata .rodata.*);
+
+    /* 4-byte align the end (VMA) of this section.
+       This is required by LLD to ensure the LMA of the following .data
+       section will have the correct alignment. */
+    . = ALIGN(4);
   } > REGION_RODATA :load
 
   .data : ALIGN(4)