]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - arch/arc/cpu/u-boot.lds
arc: No need in sections defined in sources with newer tools
[people/ms/u-boot.git] / arch / arc / cpu / u-boot.lds
index 693df74061f5c1203f18668a832fb7464abce999..d3d0a53bf2db29a1a9b963818826da3e28c77d9e 100644 (file)
@@ -4,38 +4,29 @@
  * SPDX-License-Identifier:    GPL-2.0+
  */
 
+#include <config.h>
+
 OUTPUT_FORMAT("elf32-littlearc", "elf32-littlearc", "elf32-littlearc")
 OUTPUT_ARCH(arc)
 ENTRY(_start)
 SECTIONS
 {
-       . = ALIGN(4);
+       . = CONFIG_SYS_TEXT_BASE;
+       __image_copy_start = .;
+       __text_start = .;
        .text : {
-               *(.__text_start)
-               *(.__image_copy_start)
                arch/arc/lib/start.o (.text*)
                *(.text*)
        }
-
-       . = ALIGN(4);
-       .text_end :
-       {
-               *(.__text_end)
-       }
+       __text_end = .;
 
        . = ALIGN(1024);
-       .ivt_start : {
-               *(.__ivt_start)
-       }
-
+       __ivt_start = .;
        .ivt :
        {
                *(.ivt)
        }
-
-       .ivt_end : {
-               *(.__ivt_end)
-       }
+       __ivt_end = .;
 
        . = ALIGN(4);
        .rodata : {
@@ -53,34 +44,20 @@ SECTIONS
        }
 
        . = ALIGN(4);
-       .rel_dyn_start : {
-               *(.__rel_dyn_start)
-       }
-
+       __rel_dyn_start = .;
        .rela.dyn : {
                *(.rela.dyn)
        }
-
-       .rel_dyn_end : {
-               *(.__rel_dyn_end)
-       }
+       __rel_dyn_end = .;
 
        . = ALIGN(4);
-       .bss_start : {
-               *(.__bss_start);
-       }
-
+       __bss_start = .;
        .bss : {
                *(.bss*)
        }
-
-       .bss_end : {
-               *(.__bss_end);
-       }
+       __bss_end = .;
 
        . = ALIGN(4);
-       .image_copy_end : {
-               *(.__image_copy_end)
-               *(.__init_end)
-       }
+       __image_copy_end = .;
+       __init_end = .;
 }