]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/karo/tx6/u-boot.lds
karo: tx6: remove usesless symbol _image_binary_end
[karo-tx-uboot.git] / board / karo / tx6 / u-boot.lds
index f845810b28fdc6f535b3c265411240390f7fea47..c2e6459678bda580f4194c086d8b725c1aea9669 100644 (file)
@@ -27,12 +27,17 @@ SECTIONS
        . = 0x00000000;
        .text :
        {
+               __uboot_img_start = .;
+               . = 0x400;
+               __ivt_start = .;
+               KEEP(*(.ivt*))
+               . = 0x1000;
+               __ivt_end = .;
                *(.__image_copy_start)
+               *(.vectors)
                CPUDIR/start.o (.text*)
-               . = 0x400;
-               KEEP(board/karo/tx6/lowlevel_init.o (.text*))
                *(.text*)
-       }
+       } = 0xadde01f0
 
        . = ALIGN(4);
        .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) }
@@ -40,9 +45,9 @@ SECTIONS
        . = ALIGN(4);
        .data : {
                *(.data*)
+               . = ALIGN(4);
        }
 
-       . = ALIGN(4);
        .u_boot_list : {
                KEEP(*(SORT(.u_boot_list*)));
        }
@@ -68,7 +73,26 @@ SECTIONS
                *(.__rel_dyn_end)
        }
 
-       _end = .;
+       .pad :
+       {
+               *(.pad)
+               . = ALIGN(4096);
+       } = 0x01f0adde
+
+       .uboot_img_end :
+       {
+               KEEP(*(.__uboot_img_end))
+       }
+
+#ifdef CONFIG_SECURE_BOOT
+       . = CONFIG_SYS_TEXT_BASE + 0x71000;
+       .csf_data :
+       {
+               *(.__csf_data)
+               . = . + 0x2000;
+       }
+#endif
+       __uboot_img_len = . - __uboot_img_start;
 
 /*
  * Compiler-generated __bss_start and __bss_end, see arch/arm/lib/bss.c
@@ -88,13 +112,17 @@ SECTIONS
        .bss_end __bss_limit (OVERLAY) : {
                KEEP(*(.__bss_end));
        }
-       /DISCARD/ : { *(.bss*) }
+
+       /DISCARD/ : { *(.debug*) }
+       /DISCARD/ : { *(.note*) }
+       /DISCARD/ : { *(.comment*) }
+       /DISCARD/ : { *(.dynbss) }
        /DISCARD/ : { *(.dynstr*) }
-       /DISCARD/ : { *(.dynsym*) }
        /DISCARD/ : { *(.dynamic*) }
-       /DISCARD/ : { *(.hash*) }
        /DISCARD/ : { *(.plt*) }
        /DISCARD/ : { *(.interp*) }
+       /DISCARD/ : { *(.gnu.hash) }
        /DISCARD/ : { *(.gnu*) }
+       /DISCARD/ : { *(.ARM.exidx*) }
+       /DISCARD/ : { *(.gnu.linkonce.armexidx.*) }
 }