]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/actux1/u-boot.lds
ARM: Fix __bss_start and __bss_end in linker scripts
[karo-tx-uboot.git] / board / actux1 / u-boot.lds
index 52fc9fc0c66bd99225ceb1b58bd1890836e52e75..ef4a25bc3cd952f163b91f6dd83079d4eb1e892a 100644 (file)
@@ -77,17 +77,23 @@ SECTIONS
 
        _end = .;
 
+/*
+ * Compiler-generated __bss_start and __bss_end, see arch/arm/lib/bss.c
+ * __bss_base and __bss_limit are for linker only (overlay ordering)
+ */
+
        .bss_start __rel_dyn_start (OVERLAY) : {
                KEEP(*(.__bss_start));
+               __bss_base = .;
        }
 
-       .bss __bss_start (OVERLAY) : {
+       .bss __bss_base (OVERLAY) : {
                *(.bss*)
                 . = ALIGN(4);
-                __bss_end = .;
+                __bss_limit = .;
        }
-       .bss_end __bss_end (OVERLAY) : {
-               KEEP(*(__bss_end));
+       .bss_end __bss_limit (OVERLAY) : {
+               KEEP(*(.__bss_end));
        }
 
        /DISCARD/ : { *(.dynstr*) }