]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - ld/scripttempl/v850.sc
Update year range in copyright notice of binutils files
[thirdparty/binutils-gdb.git] / ld / scripttempl / v850.sc
index c66c310882b782764cb5fd679122487150cbeb2f..087d472c5c25ebe5074ca7c501992e2924be8dfb 100644 (file)
@@ -1,11 +1,11 @@
-# Copyright (C) 2014-2018 Free Software Foundation, Inc.
+# Copyright (C) 2014-2021 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.
 
 cat << EOF
-/* Copyright (C) 2014-2018 Free Software Foundation, Inc.
+/* Copyright (C) 2014-2021 Free Software Foundation, Inc.
 
    Copying and distribution of this script, with or without modification,
    are permitted in any medium without royalty provided the copyright
@@ -25,9 +25,9 @@ SECTIONS
   .zdata ${ZDATA_START_ADDR} :
   {
        *(.zdata)
-       *(.zbss)
+       ${RELOCATING+*(.zbss)
        *(reszdata)
-       *(.zcommon)
+       *(.zcommon)}
   }
 
   /* This is the read only part of the zero data area.
@@ -39,8 +39,8 @@ SECTIONS
   .rozdata ${ROZDATA_START_ADDR} :
   {
        *(.rozdata)
-       *(romzdata)
-       *(romzbss)
+       ${RELOCATING+*(romzdata)
+       *(romzbss)}
   }
 
   /* Read-only sections, merged into text segment.  */
@@ -71,7 +71,7 @@ SECTIONS
   .rela.bss    : { *(.rela.bss) }
   .rel.plt     : { *(.rel.plt) }
   .rela.plt    : { *(.rela.plt) }
-  .init                : { KEEP (*(.init)) } =0
+  .init                : { KEEP (*(SORT_NONE(.init))) } =0
   .plt         : { *(.plt) }
 
   .text                :
@@ -79,9 +79,9 @@ SECTIONS
     *(.text)
     ${RELOCATING+*(.text.*)}
 
-    /* .gnu.warning sections are handled specially by elf32.em.  */
+    /* .gnu.warning sections are handled specially by elf.em.  */
     *(.gnu.warning)
-    *(.gnu.linkonce.t*)
+    ${RELOCATING+*(.gnu.linkonce.t*)}
   } =0
 
   ${RELOCATING+_etext = .;}
@@ -102,23 +102,23 @@ SECTIONS
     *(.call_table_text)
   }
 
-  .fini                : { KEEP (*(.fini)) } =0
-  .rodata      : { *(.rodata) ${RELOCATING+*(.rodata.*)} *(.gnu.linkonce.r*) }
+  .fini                : { KEEP (*(SORT_NONE(.fini))) } =0
+  .rodata      : { *(.rodata) ${RELOCATING+*(.rodata.*) *(.gnu.linkonce.r*)} }
   .rodata1     : { *(.rodata1) }
 
   .data                :
   {
     *(.data)
-    ${RELOCATING+*(.data.*)}
-    *(.gnu.linkonce.d*)
-    CONSTRUCTORS
+    ${RELOCATING+*(.data.*)
+    *(.gnu.linkonce.d*)}
+    ${CONSTRUCTING+CONSTRUCTORS}
   }
   .data1       : { *(.data1) }
   .ctors       :
   {
     ${CONSTRUCTING+___ctors = .;}
     KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors))
-    KEEP (*(SORT(.ctors.*)))
+    ${RELOCATING+KEEP (*(SORT(.ctors.*)))}
     KEEP (*crtend(.ctors))
     ${CONSTRUCTING+___ctors_end = .;}
   }
@@ -126,7 +126,7 @@ SECTIONS
   {
     ${CONSTRUCTING+___dtors = .;}
     KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors))
-    KEEP (*(SORT(.dtors.*)))
+    ${RELOCATING+KEEP (*(SORT(.dtors.*)))}
     KEEP (*crtend.o(.dtors))
     ${CONSTRUCTING+___dtors_end = .;}
   }
@@ -137,17 +137,17 @@ SECTIONS
 
   .gcc_except_table : { *(.gcc_except_table) }
 
-  .got         : { *(.got.plt) *(.got) }
+  .got         : {${RELOCATING+ *(.got.plt)} *(.got) }
   .dynamic     : { *(.dynamic) }
 
   .tdata ${TDATA_START_ADDR} :
   {
-       ${RELOCATING+PROVIDE (__ep = .);}
+       ${RELOCATING+PROVIDE (__ep = .);
        *(.tbyte)
-       *(.tcommon_byte)
+       *(.tcommon_byte)}
        *(.tdata)
-       *(.tbss)
-       *(.tcommon)
+       ${RELOCATING+*(.tbss)
+       *(.tcommon)}
   }
 
   /* We want the small data sections together, so single-instruction offsets
@@ -175,7 +175,7 @@ SECTIONS
   {
        ${RELOCATING+__sbss_start = .;}
        *(.sbss)
-       *(.scommon)
+       ${RELOCATING+*(.scommon)}
   }
 
   ${RELOCATING+_edata  = DEFINED (__sbss_start) ? __sbss_start : . ;}
@@ -185,9 +185,9 @@ SECTIONS
   {
        ${RELOCATING+__bss_start = DEFINED (__sbss_start) ? __sbss_start : . ;}
        ${RELOCATING+__real_bss_start = . ;}
-       *(.dynbss)
+       ${RELOCATING+*(.dynbss)}
        *(.bss)
-       *(COMMON)
+       ${RELOCATING+*(COMMON)}
   }
 
   ${RELOCATING+_end = . ;}