]> git.sur5r.net Git - u-boot/commitdiff
arm64: Add NOLOAD attribute NOLOAD to .bss sections
authorMichal Simek <michal.simek@xilinx.com>
Mon, 29 May 2017 08:26:53 +0000 (10:26 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 5 Jun 2017 18:13:12 +0000 (14:13 -0400)
Mark explicitly bss sections to not be loaded at
run time.
The similar patch was done in past by:
"Fix linker scripts: add NOLOAD atribute to .bss/.sbss sections"
(sha1: 64134f011254123618798ff77c42ba196b2ec485)

The problem is related to latest toolchain added to Xilinx
v2017.1 design tools where jtag loader is trying to access
ununitialized memory.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/cpu/armv8/u-boot-spl.lds

index cc427c3583fd59fdc8865db8c13eef0d8efb53b6..0d1b0c499304f2472bd340c9449e54a3a159639f 100644 (file)
@@ -56,17 +56,17 @@ SECTIONS
 
        _image_binary_end = .;
 
-       .bss_start : {
+       .bss_start (NOLOAD) : {
                . = ALIGN(8);
                KEEP(*(.__bss_start));
        } >.sdram
 
-       .bss : {
+       .bss (NOLOAD) : {
                *(.bss*)
                 . = ALIGN(8);
        } >.sdram
 
-       .bss_end : {
+       .bss_end (NOLOAD) : {
                KEEP(*(.__bss_end));
        } >.sdram