]> rtime.felk.cvut.cz Git - sysless.git/commitdiff
h8300: hi_cpu2 board - correct ld-scripts breakage.
authorPavel Pisa <pisa@cmp.felk.cvut.cz>
Mon, 2 May 2011 21:55:07 +0000 (23:55 +0200)
committerPavel Pisa <pisa@cmp.felk.cvut.cz>
Mon, 2 May 2011 21:55:07 +0000 (23:55 +0200)
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
board/h8300/hi_cpu2/libs/hi_cpu2.ld-boot
board/h8300/hi_cpu2/libs/hi_cpu2.ld-flash
board/h8300/hi_cpu2/libs/hi_cpu2.ld-flashnoram

index c3f5246d45c8f90b4e227cf50a99a5c0473c8fde..656caabf51c4186aa337863eb60ecf90cc84ca33 100644 (file)
@@ -64,7 +64,8 @@ SECTIONS
         .data :
          AT ( ADDR( .tors ) + SIZEOF( .tors ) )
        {
-         _data_start = . ;
+         . = ALIGN( 0x4 ) ;
+         _data_start = ALIGN( 0x4 ) ;
           *(.data)
          . = ALIGN( 0x4 ) ;
          _edata = ALIGN( 0x4 ) ;
@@ -74,7 +75,8 @@ SECTIONS
        
         .bss :
         {
-         _bss_start = ALIGN( 0x10 ) ;
+         . = ALIGN( 0x4 ) ;
+         _bss_start = ALIGN( 0x4 ) ;
          *(.bss)
          *(COMMON)
          . = ALIGN( 0x4 ) ;
index c11c531d9ea94249dc434f35078988694433c6d1..7f76c59024493ab2fd6caa67e158eb4eea42a620 100644 (file)
@@ -56,7 +56,8 @@ SECTIONS
        .data :
            AT ( ADDR( .tors ) + SIZEOF( .tors ) )
        {
-         _data_start = . ;
+         . = ALIGN( 0x4 ) ;
+         _data_start = ALIGN( 0x4 ) ;
          *(.data)
          . = ALIGN( 0x4 ) ;
          _edata = ALIGN( 0x4 ) ;
@@ -66,7 +67,8 @@ SECTIONS
 
        .bss :
        {
-         _bss_start = ALIGN( 0x10 ) ;
+         . = ALIGN( 0x4 ) ;
+         _bss_start = ALIGN( 0x4 ) ;
          *(.bss)
          *(COMMON)
          . = ALIGN( 0x4 ) ;
index a8449e1ef87023cb818cd0b2302a74baed819b4d..73f872bf883244e4aaf05ffb4de051e547b91cce 100644 (file)
@@ -57,7 +57,8 @@ SECTIONS
        .data :
            AT ( ADDR( .tors ) + SIZEOF( .tors ) )
        {
-         _data_start = . ;
+         . = ALIGN( 0x4 ) ;
+         _data_start = ALIGN( 0x4 ) ;
          *(.data)
          . = ALIGN( 0x4 ) ;
          _edata = ALIGN( 0x4 ) ;
@@ -67,7 +68,8 @@ SECTIONS
 
        .bss :
        {
-         _bss_start = ALIGN( 0x10 ) ;
+         . = ALIGN( 0x4 ) ;
+         _bss_start = ALIGN( 0x4 ) ;
          *(.bss)
          *(COMMON)
          . = ALIGN( 0x4 ) ;