]> rtime.felk.cvut.cz Git - sysless.git/blobdiff - board/h8300/h8eurobot/libs/h8canusb.ld-flash
h8300: correct broken ld-scipts for h8eurobot and h8canusb boards.
[sysless.git] / board / h8300 / h8eurobot / libs / h8canusb.ld-flash
index 414077fa8f319fcd9406922dc7f9023af7f51395..697f8f7620ba3100650cd857091e1806e2fa27f4 100644 (file)
@@ -20,6 +20,7 @@ SECTIONS
          LONG( ABSOLUTE( _start ) + 0x5a000000 ) /* JMP _start */
 /*       KEEP (crt0.o(.text)) */
          . = ALIGN( 4 ) ;
+         ___boot_fn_load = ALIGN( 0x4 ) ;
          ___boot_fn_start = ALIGN( 0x4 ) ;
           KEEP (*boot_fn.o(.text))
          KEEP (*boot_fn.o(.rodata))
@@ -56,7 +57,8 @@ SECTIONS
        .data :
            AT ( ADDR( .tors ) + SIZEOF( .tors ) )
        {
-         _data_start = . ;
+         . = ALIGN( 0x4 ) ;
+         _data_start = ALIGN( 0x4 ) ;
          *(.data)
          . = ALIGN( 0x4 ) ;
          _edata = ALIGN( 0x4 ) ;
@@ -66,7 +68,8 @@ SECTIONS
 
        .bss :
        {
-         _bss_start = ALIGN( 0x10 ) ;
+         . = ALIGN( 0x4 ) ;
+         _bss_start = ALIGN( 0x4 ) ;
          *(.bss)
          *(COMMON)
          . = ALIGN( 0x4 ) ;