]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/freescale/mx31ads/u-boot.lds
arm: make __bss_start and __bss_end__ compiler-generated
[karo-tx-uboot.git] / board / freescale / mx31ads / u-boot.lds
index 52677299e889a384a32ecc0d1de1c77be6222473..12d7c1256f4f2bef532ac99c95344c01e655d18a 100644 (file)
@@ -80,11 +80,17 @@ SECTIONS
 
        _end = .;
 
-       .bss __rel_dyn_start (OVERLAY) : {
-               __bss_start = .;
-               *(.bss)
+       .bss_start __rel_dyn_start (OVERLAY) : {
+               KEEP(*(.__bss_start));
+       }
+
+       .bss __bss_start (OVERLAY) : {
+               *(.bss*)
                 . = ALIGN(4);
-               __bss_end__ = .;
+                ___bssend___ = .;
+       }
+       .bss_end ___bssend___ (OVERLAY) : {
+               KEEP(*(.__bss_end__));
        }
 
        /DISCARD/ : { *(.bss*) }