i386-moss and i386-openbsd ld config
[deliverable/binutils-gdb.git] / ld / scripttempl / moxie.sc
index f7d788ff658203ee80914a15a7b45df4ebdc64a4..e86dfc950c67d28d92721e59daceba89d3640a2b 100644 (file)
@@ -1,3 +1,9 @@
+# Copyright (C) 2014-2020 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 = . ;
@@ -9,6 +15,12 @@ TORS=".tors :
   } > ram"
 
 cat <<EOF
+/* Copyright (C) 2014-2020 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})
 
@@ -17,10 +29,10 @@ SECTIONS
   .text :
   {
     *(.text)
-      .init : { KEEP (*(.init)) } =0
-      .fini : { KEEP (*(.fini)) } =0
+    ${RELOCATING+KEEP (*(SORT_NONE(.init)))
+    KEEP (*(SORT_NONE(.fini)))
     *(.strings)
-    ${RELOCATING+ _etext = . ; }
+    _etext = . ; }
   } ${RELOCATING+ > ram}
   ${CONSTRUCTING+${TORS}}
   .data :
This page took 0.027145 seconds and 4 git commands to generate.