ChangeLog rotatation and copyright year update
[deliverable/binutils-gdb.git] / ld / scripttempl / sh.sc
index 3eefa62157b46b4ad3050a6106f04a1329a53786..3502879baee85101af835be9dd3ba3df6ffab749 100644 (file)
@@ -1,47 +1,73 @@
+# Copyright (C) 2014-2015 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=".tors :
+  {
+    ___ctors = . ;
+    *(.ctors)
+    ___ctors_end = . ;
+    ___dtors = . ;
+    *(.dtors)
+    ___dtors_end = . ;
+  } > ram"
+
 cat <<EOF
+/* Copyright (C) 2014-2015 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 {
-       ram   : o = 0x1000, l = 512k
-       }
-
-SECTIONS                               
-{                                      
-.text :
-       {                                       
-         *(.text)                              
-         *(.strings)
-        ${RELOCATING+ _etext = . ; }
-       } ${RELOCATING+ > ram}
-
-
-.tors   : {
-       ___ctors = . ;
-       *(.ctors)
-       ___ctors_end = . ;
-       ___dtors = . ;
-       *(.dtors)
-       ___dtors_end = . ;
-}  ${RELOCATING+ > ram}
-
-.data  :
-       {
-       *(.data)
-       ${RELOCATING+ _edata = . ; }
-       } ${RELOCATING+ > ram}
-.bss  :
-       {
-       ${RELOCATING+ _bss_start = . ;}
-       *(.bss)
-       *(COMMON)
-       ${RELOCATING+ _end = . ;  }
-       } ${RELOCATING+ >ram}
-.stack : 
-       {
-       ${RELOCATING+ _stack = . ; }
-       *(.stack)
-       } ${RELOCATING+ > ram}
+MEMORY
+{
+  ram : o = 0x1000, l = 512k
+}
+
+SECTIONS
+{
+  .text :
+  {
+    *(.text)
+    *(.strings)
+    ${RELOCATING+ _etext = . ; }
+  } ${RELOCATING+ > ram}
+  ${CONSTRUCTING+${TORS}}
+  .data :
+  {
+    *(.data)
+    ${RELOCATING+*(.gcc_exc*)}
+    ${RELOCATING+___EH_FRAME_BEGIN__ = . ;}
+    ${RELOCATING+*(.eh_fram*)}
+    ${RELOCATING+___EH_FRAME_END__ = . ;}
+    ${RELOCATING+LONG(0);}
+    ${RELOCATING+ _edata = . ; }
+  } ${RELOCATING+ > ram}
+  .bss :
+  {
+    ${RELOCATING+ _bss_start = . ; }
+    *(.bss)
+    *(COMMON)
+    ${RELOCATING+ _end = . ;  }
+  } ${RELOCATING+ > ram}
+  .stack ${RELOCATING+ 0x30000 }  :
+  {
+    ${RELOCATING+ _stack = . ; }
+    *(.stack)
+  } ${RELOCATING+ > ram}
+  .stab 0 ${RELOCATING+(NOLOAD)} :
+  {
+    *(.stab)
+  }
+  .stabstr 0 ${RELOCATING+(NOLOAD)} :
+  {
+    *(.stabstr)
+  }
 }
 EOF
 
This page took 0.033672 seconds and 4 git commands to generate.