]> 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 e1e09fdbad54af5b16fc024b9387deba1c172fc9..7b956683c784b6a04e2436b25df5d2ff4193c4e4 100644 (file)
@@ -1,11 +1,14 @@
-# Copyright (C) 2014-2016 Free Software Foundation, Inc.
-# 
+# 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-2016 Free Software Foundation, Inc.
+/* 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
@@ -21,11 +24,11 @@ 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
@@ -89,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) }