riscv: Include bss subsections in linker script
authorAlexander Graf <agraf@suse.de>
Mon, 20 Aug 2018 12:25:49 +0000 (14:25 +0200)
committerAlexander Graf <agraf@suse.de>
Mon, 20 Aug 2018 12:25:59 +0000 (14:25 +0200)
When we build with -fdata-sections we may end up with bss subsections. Our
linker script explicitly lists only a single consecutive bss section though.

Adapt the statement to also include subsections.

Signed-off-by: Alexander Graf <agraf@suse.de>
arch/riscv/cpu/ax25/u-boot.lds

index 3cc89746b1694d638878ed42942ebe87df14ccdf..c50b9642f1a971b173e600682c963a94f86b5aea 100644 (file)
@@ -82,7 +82,7 @@ SECTIONS
 
        .bss : {
         __bss_start = .;
-        *(.bss)
+        *(.bss*)
                . = ALIGN(4);
                __bss_end = .;
        }