4
0
Эх сурвалжийг харах

Fix .data alignment issue

Vadim Kaushan 5 жил өмнө
parent
commit
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)