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 3cc8974..c50b964 100644 (file)
@@ -82,7 +82,7 @@ SECTIONS
 
        .bss : {
         __bss_start = .;
-        *(.bss)
+        *(.bss*)
                . = ALIGN(4);
                __bss_end = .;
        }