-Wimplicit-fallthrough error fixes
[deliverable/binutils-gdb.git] / ld / scripttempl / h8500.sc
index ed2d44f83e00bc36596252de5782687d005afcb9..32ea094d49bb927a8d4ae39e47abf18c2cb8829c 100644 (file)
@@ -1,43 +1,73 @@
+# Copyright (C) 2014-2016 Free Software Foundation, Inc.
+# 
+# Copying and distribution of this file, with or without modification,
+# are permitted in any medium without royalty provided the copyright
+# notice and this notice are preserved.
+
+TORS="
+    ___ctors = . ;
+    *(.ctors)
+    ___ctors_end = . ;
+    ___dtors = . ;
+    *(.dtors)
+    ___dtors_end = . ;"
+
 cat <<EOF
+/* Copyright (C) 2014-2016 Free Software Foundation, Inc.
+
+   Copying and distribution of this script, with or without modification,
+   are permitted in any medium without royalty provided the copyright
+   notice and this notice are preserved.  */
+
 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
 OUTPUT_ARCH(${ARCH})
 
-MEMORY {
-       rom   : o = 0x0000, l = 0x7fe0 
-       duart : o = 0x7fe0, l = 16
-       ram   : o = 0x8000, l = 28k
-       topram : o = 0x8000+28k, l = 1k
-       hmsram : o = 0xfb80, l = 512
-       }
+/* Code and data 64k total */
 
-SECTIONS                               
-{                                      
-.text :
-       {                                       
-         *(.text)                              
-         *(.strings)
-        ${RELOCATING+ _etext = . ; }
-       } ${RELOCATING+ > ram}
-.data  :
+SECTIONS
+{
+.text ${RELOCATING+ 0x0000} :
        {
-       *(.data)
-       ${RELOCATING+ _edata = . ; }
-       } ${RELOCATING+ > ram}
-.bss  :
+         *(.text)
+         ${RELOCATING+ _etext = . ; }
+       }
+
+.data  ${RELOCATING+ . } :
        {
-       ${RELOCATING+ _bss_start = . ;}
-       *(.bss)
-       *(COMMON)
-       ${RELOCATING+ _end = . ;  }
-       } ${RELOCATING+ >ram}
-.stack : 
+         *(.data)
+         ${RELOCATING+ _edata = . ; }
+       }
+
+.rdata  ${RELOCATING+ . } :
        {
-       ${RELOCATING+ _stack = . ; }
-       *(.stack)
-       } ${RELOCATING+ > topram}
-}
-EOF
+         *(.rdata);
+         *(.strings)
 
+         ${CONSTRUCTING+${TORS}}
+       }
+
+.bss  ${RELOCATING+ . } :
+       {
+         ${RELOCATING+ __start_bss = . ; }
+         *(.bss)
+         *(COMMON)
+         ${RELOCATING+ _end = . ;  }
+       }
 
+.stack  ${RELOCATING+ 0xfff0} :
+       {
+         ${RELOCATING+ _stack = . ; }
+         *(.stack)
+       }
 
+.stab  0 ${RELOCATING+(NOLOAD)} :
+       {
+         [ .stab ]
+       }
 
+.stabstr  0 ${RELOCATING+(NOLOAD)} :
+       {
+         [ .stabstr ]
+       }
+}
+EOF
This page took 0.024897 seconds and 4 git commands to generate.