Move AVR .promemx.* sections into higher memory.
[binutils-gdb.git] / ld / scripttempl / ia64vms.sc
index b8be91f2ef43d276007c0231d68dba7ed22965bb..f14d835ebd04c53e51305c3f1ffbad654bd17392 100644 (file)
@@ -1,10 +1,22 @@
 # Linker script for Itanium VMS systems.
 # Tristan Gingold <gingold@adacore.com>.
+#
+# Copyright (C) 2014-2017 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.
 
 PAGESIZE=0x10000
 BLOCKSIZE=0x200
 
 cat <<EOF
+/* Copyright (C) 2014-2017 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}")
 ${LIB_SEARCH_DIRS}
 ENTRY(__entry)
@@ -16,14 +28,14 @@ SECTIONS
 
   \$DATA\$ ALIGN (${BLOCKSIZE}) : {
     *(\$DATA\$ .data .data.*)
-    *(\$BSS\$ .bss)
+    *(\$BSS\$ .bss .bss.*)
   }
 
   /* Code segment.  Note: name must be \$CODE\$ */
   ${RELOCATING+. = ALIGN (${PAGESIZE});}
 
   \$CODE\$ ALIGN (${BLOCKSIZE}) : {
-    *(\$CODE\$ .text)
+    *(\$CODE\$ .text .text.*)
   }
   .plt ALIGN (8) : {
     *(.plt)
@@ -35,7 +47,7 @@ SECTIONS
   /* RO initialized data.  */
   \$LITERAL\$ ALIGN (${BLOCKSIZE}) : {
     *(\$LITERAL\$)
-    *(\$READONLY\$ .rodata)
+    *(\$READONLY\$ .rodata .rodata.*)
     *(.jcr)
     *(.ctors)
     *(.dtors)
@@ -53,7 +65,7 @@ SECTIONS
   ${RELOCATING+. = ALIGN (${PAGESIZE});}
 
   .srodata : {
-    *(.srodata)
+    *(.srodata .srodata.*)
   }
   .got ALIGN (8) : {
     *(.got)
@@ -62,7 +74,7 @@ SECTIONS
     *(.IA_64.pltoff)
   }
   \$TFR\$ ALIGN (16) : {
-    /* Tranfer vector.  */
+    /* Transfer vector.  */
     __entry = .;
     *(.transfer)
   }
@@ -71,7 +83,7 @@ SECTIONS
 
   \$RW_SHORT\$ ALIGN (${BLOCKSIZE}) : {
     *(.sdata .sdata.*)
-    *(.sbss)
+    *(.sbss .sbss.*)
   }
 
   ${RELOCATING+. = ALIGN (${PAGESIZE});}
@@ -106,11 +118,11 @@ SECTIONS
 
 EOF
 
-source $srcdir/scripttempl/DWARF.sc
+. $srcdir/scripttempl/DWARF.sc
 
 cat <<EOF  
   .note : { *(.vms.note) }
 
-  /DISCARD/ : { *(.note) }
+  /DISCARD/ : { *(.note) *(.vms_display_name_info) }
 }
 EOF