]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
FT32 linker script cleanup
authorjamesbowman <jamesb@excamera.com>
Thu, 7 Jul 2016 01:55:25 +0000 (18:55 -0700)
committerjamesbowman <jamesb@excamera.com>
Thu, 7 Jul 2016 01:58:10 +0000 (18:58 -0700)
Fix a typo (__PMSIZE was written as __PMSIZE_) and add section alignment
for DATA and BSS.

ld/ChangeLog:

  * scripttempl/ft32.sc (__PMSIZE): Correct __PMSIZE_.
    (DATA): add ALIGN.
    (BSS): add ALIGN

ld/ChangeLog
ld/scripttempl/ft32.sc

index 826ea7c8325a1b8204d3d5759f3e14afd58f9089..cd6f04c63f55305f09f8d06c4701f413765800cd 100644 (file)
@@ -1,3 +1,9 @@
+2016-07-06  James Bowman  <james.bowman@ftdichip.com>
+
+       * scripttempl/ft32.sc (__PMSIZE): Correct __PMSIZE_.
+       (DATA): add ALIGN.
+        (BSS): add ALIGN
+
 2016-07-05  H.J. Lu  <hongjiu.lu@intel.com>
 
        * testsuite/ld-plugin/lto.exp: Add -flto to PR ld/20321 test.
index 15f8335c5cd43d4192370ca98865f93ba9d97366..711965265f1ccd011037ce6e1f4966f76c0e3b75 100644 (file)
@@ -15,7 +15,7 @@ OUTPUT_ARCH(${ARCH})
 ${LIB_SEARCH_DIRS}
 
 /* Allow the command line to override the memory region sizes.  */
-__PMSIZE_ = DEFINED(__PMSIZE)  ? __PMSIZE : 256K;
+__PMSIZE = DEFINED(__PMSIZE)  ? __PMSIZE : 256K;
 __RAMSIZE = DEFINED(__RAMSIZE) ? __RAMSIZE : 64K;
 
 MEMORY
@@ -43,6 +43,7 @@ SECTIONS
     *(.rodata)
     *(.rodata*)
     ${RELOCATING+ _edata = . ; }
+    . = ALIGN(4);
   } ${RELOCATING+ > ram}
   .bss  ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} :
   {
@@ -50,6 +51,7 @@ SECTIONS
     *(.bss)
     *(COMMON)
     ${RELOCATING+ _end = . ;  }
+    . = ALIGN(4);
   } ${RELOCATING+ > ram}
 
   ${RELOCATING+ __data_load_start = LOADADDR(.data); }