Sfoglia il codice sorgente

Fix .data alignment issue

Vadim Kaushan 5 anni fa
parent
commit
03a3639de8
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  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)