Rename remaining members of buildsym_compunit to start with "m_"
[deliverable/binutils-gdb.git] / ld / scripttempl / v850_rh850.sc
index 949b2e9889288c6f9d57859e1376d32de0834281..618dc2f96d364c42e38894e101e55c0f088d45d8 100644 (file)
@@ -1,10 +1,22 @@
+# Copyright (C) 2014-2018 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.
+
+   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("elf32-v850-rh850", "elf32-v850-rh850",
              "elf32-v850-rh850")
-OUTPUT_ARCH(v850-rh850)
+OUTPUT_ARCH(v850:rh850)
 ${RELOCATING+ENTRY(_start)}
 SEARCH_DIR(.);
-EXTERN(__ctbp __ep __gp);
+${RELOCATING+EXTERN(__ctbp __ep __gp)};
 SECTIONS
 {
   /* This saves a little space in the ELF file, since the zda starts
@@ -21,7 +33,7 @@ SECTIONS
   }
 
   /* This is the read only part of the zero data area.
-     Having it as a seperate section prevents its
+     Having it as a separate section prevents its
      attributes from being inherited by the zdata
      section.  Specifically it prevents the zdata
      section from being marked READONLY.  */
@@ -70,7 +82,7 @@ SECTIONS
   {
     *(.text)
     ${RELOCATING+*(.text.*)}
-    
+
     /* .gnu.warning sections are handled specially by elf32.em.  */
     *(.gnu.warning)
     *(.gnu.linkonce.t*)
@@ -88,7 +100,7 @@ SECTIONS
     ${RELOCATING+PROVIDE(__ctbp = .);}
     *(.call_table_data)
   } = 0xff   /* Fill gaps with 0xff.  */
-  
+
   .call_table_text :
   {
     *(.call_table_text)
@@ -157,7 +169,7 @@ SECTIONS
   /* We want the small data sections together, so single-instruction offsets
      can access them all, and initialized data all before uninitialized, so
      we can shorten the on-disk segment size.  */
-     
+
   .sdata ${SDATA_START_ADDR} :
   {
        ${RELOCATING+PROVIDE (__gp = . + 0x8000);}
@@ -174,10 +186,10 @@ SECTIONS
   }
 
   /* We place the .sbss data section AFTER the .rosdata section, so that
-     it can directly preceed the .bss section.  This allows runtime startup
+     it can directly precede the .bss section.  This allows runtime startup
      code to initialise all the zero-data sections by simply taking the
      value of '_edata' and zeroing until it reaches '_end'.  */
-     
+
   .sbss :
   {
        ${RELOCATING+__sbss_start = .;}
@@ -202,6 +214,8 @@ SECTIONS
   ${RELOCATING+PROVIDE (end = .);}
   ${RELOCATING+PROVIDE (_heap_start = .);}
 
+  .note.renesas 0 : { KEEP(*(.note.renesas)) }
+
   /* Stabs debugging sections.  */
   .stab 0              : { *(.stab) }
   .stabstr 0           : { *(.stabstr) }
@@ -213,7 +227,7 @@ SECTIONS
 
 EOF
 
-source $srcdir/scripttempl/DWARF.sc
+. $srcdir/scripttempl/DWARF.sc
 
 cat <<EOF
   /* User stack.  */
This page took 0.025055 seconds and 4 git commands to generate.