]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sandbox: Move BSS after EFI sections
authorAlexander Graf <agraf@suse.de>
Mon, 6 Aug 2018 22:29:01 +0000 (00:29 +0200)
committerAlexander Graf <agraf@suse.de>
Mon, 20 Aug 2018 09:39:19 +0000 (11:39 +0200)
Something went wrong when writing the sandbox linker scripts and so we
ended up with a .bss section marker right before the efi runtime sections.

That obviously is a terrible idea, as it may result in overwriting efi
runtime code and data. So let's move the .bss identifier behind the efi
sections.

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

index 727bcc3598153a94de71caaf30dd76b3746769e7..40c22143018e509e9fd9738e4d89e14fb9d93687 100644 (file)
@@ -17,9 +17,7 @@ SECTIONS
        _u_boot_sandbox_getopt : { *(.u_boot_sandbox_getopt) }
        __u_boot_sandbox_option_end = .;
 
-       __bss_start = .;
-
-               .__efi_runtime_start : {
+       .__efi_runtime_start : {
                *(.__efi_runtime_start)
        }
 
@@ -48,6 +46,7 @@ SECTIONS
                *(.__efi_runtime_rel_stop)
        }
 
+       __bss_start = .;
 }
 
 INSERT BEFORE .data;