]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - ld/scripttempl/ip2k.sc
Update year range in copyright notice of binutils files
[thirdparty/binutils-gdb.git] / ld / scripttempl / ip2k.sc
index b10013a75c93c0632c675014ae90fba4fdb36bdd..7b956683c784b6a04e2436b25df5d2ff4193c4e4 100644 (file)
@@ -1,4 +1,19 @@
+# Copyright (C) 2014-2022 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.
+
+# Using an empty script for ld -r is better than mashing together
+# sections.  This hack likely leaves ld -Ur broken.
+test -n "${RELOCATING}" || exit 0
 cat << EOF
+/* Copyright (C) 2014-2022 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-ip2k", "elf32-ip2k", "elf32-ip2k")
 OUTPUT_ARCH(ip2k)
 ${RELOCATING+ENTRY(_start)}
@@ -9,17 +24,17 @@ SEARCH_DIR(.);
 MEMORY
 {
        D_GPR    : org = 0x01000080, len = 128
-        D_RAM    : org = 0x01000100, len = 4K - 256
-        P_RAM    : org = 0x02000000, len = 16K
-        P_ROM    : org = 0x02010000, len = 64K - 32
-        P_RESET  : org = 0x0201FFE0, len = 32
-        P_CONFIG : org = 0x02020000, len = 128
+       D_RAM    : org = 0x01000100, len = 4K - 256
+       P_RAM    : org = 0x02000000, len = 16K
+       P_ROM    : org = 0x02010000, len = 64K - 32
+       P_RESET  : org = 0x0201FFE0, len = 32
+       P_CONFIG : org = 0x02020000, len = 128
 }
 
 SECTIONS
 {
        /* Allocated memory end markers
-          (initialized to start of appropiate memory address).  */
+          (initialized to start of appropriate memory address).  */
        __data_end  = 0x01000100;
        __pram_end  = 0x02000000;
        __flash_end = 0x02010000;
@@ -77,7 +92,7 @@ SECTIONS
 
        /* PRAM overlay code.  */
        __pram_overlay_run_start  = (__pram_end  + 1) & 0xFFFFFFFE;
-       __pram_overlay_load_start = (__flash_end + 1) & 0xFFFFFFFE;     
+       __pram_overlay_load_start = (__flash_end + 1) & 0xFFFFFFFE;
        OVERLAY __pram_overlay_run_start : AT (__pram_overlay_load_start)
        {
                .pram1 { */overlay1/* (.pram); * (.pram1) }
@@ -129,22 +144,10 @@ SECTIONS
        .stab.indexstr  0 : { *(.stab.indexstr) }
        .comment        0 : { *(.comment) }
 
-       /* DWARF 1.  */
-       .debug          0 : { *(.debug) }
-       .line           0 : { *(.line) }
-       /* GNU DWARF 1 extensions.  */
-       .debug_srcinfo  0 : { *(.debug_srcinfo .zdebug_srcinfo) }
-       .debug_sfnames  0 : { *(.debug_sfnames .zdebug_sfnames) }
-       /* DWARF 1.1 and DWARF 2.  */
-       .debug_aranges  0 : { *(.debug_aranges .zdebug_aranges) }
-       .debug_pubnames 0 : { *(.debug_pubnames .zdebug_pubnames) }
-       /* DWARF 2.  */
-       .debug_info     0 : { *(.debug_info${RELOCATING+ .gnu.linkonce.wi.*} .zdebug_info) }
-       .debug_abbrev   0 : { *(.debug_abbrev .zdebug_abbrev) }
-       .debug_line     0 : { *(.debug_line .zdebug_line) }
-       .debug_frame    0 : { *(.debug_frame .zdebug_frame) }
-       .debug_str      0 : { *(.debug_str .zdebug_str) }
-       .debug_loc      0 : { *(.debug_loc .zdebug_loc) }
-       .debug_macinfo  0 : { *(.debug_macinfo .zdebug_macinfo) }
+EOF
+
+. $srcdir/scripttempl/DWARF.sc
+
+cat <<EOF
 }
 EOF