]> rtime.felk.cvut.cz Git - sysless.git/commitdiff
h8300: Update h8canusb ld scripts to work with updated bootloader
authorMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 16 Mar 2011 07:53:45 +0000 (08:53 +0100)
committerPavel Pisa <pisa@cmp.felk.cvut.cz>
Wed, 16 Mar 2011 16:00:42 +0000 (17:00 +0100)
board/h8300/h8canusb/libs/h8canusb.ld-boot

index c56266904737a4bfe2e88957b0b913139b2f7252..ba4080645bae5f40864ab1d4886395a4c62f4eb6 100644 (file)
@@ -28,18 +28,24 @@ SECTIONS
        {
          text_start = . ;
          KEEP (crt0.o(.text))
+          *(EXCLUDE_FILE(*boot_fn.o) .text)
+         *(EXCLUDE_FILE(*boot_fn.o) .rodata)                           
+         *(EXCLUDE_FILE(*boot_fn.o) .text .stub .text.* .gnu.linkonce.t.*)
+         *(EXCLUDE_FILE(*boot_fn.o) .rodata .rodata.* .gnu.linkonce.r.*)
+         *(EXCLUDE_FILE(*boot_fn.o) .strings)
+         . = ALIGN( 0x4 ) ;
+         _etext = ALIGN( 0x4 ) ;
+        } > flashbb
+       .text.boot_fn :
+       {
          . = ALIGN( 4 ) ;
          ___boot_fn_start = ALIGN( 0x4 ) ;
-          KEEP (*boot_fn.o(.text))
-         KEEP (*boot_fn.o(.rodata))
+          KEEP (boot_fn.o(.text))
+         KEEP (boot_fn.o(.rodata))
+         KEEP (boot_fn.o(.strings))
          . = ALIGN( 4 ) ;
          ___boot_fn_end = ALIGN( 0x4 ) ;
-         *(.text .stub .text.* .gnu.linkonce.t.*)
-         *(.rodata .rodata.* .gnu.linkonce.r.*)
-         *(.strings)
-         . = ALIGN( 0x4 ) ;
-         _etext = ALIGN( 0x4 ) ;
-        } > flashbb
+       } > bloader AT>flashbb
 
        .tors : 
        {