aboutsummaryrefslogtreecommitdiff
path: root/arch/sandbox
diff options
context:
space:
mode:
authorAlexander Graf2018-08-07 00:29:01 +0200
committerAlexander Graf2018-08-20 11:39:19 +0200
commit18e684dd4ca46a7a1bccc4e30ab47e92315e59c1 (patch)
treecba0d2bda64b61e65f2fc1acf5c47875c8e29dd1 /arch/sandbox
parent9f8cf76be256a83643ee05de6cffaeb452ed0931 (diff)
sandbox: Move BSS after EFI sections
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>
Diffstat (limited to 'arch/sandbox')
-rw-r--r--arch/sandbox/cpu/u-boot.lds5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/sandbox/cpu/u-boot.lds b/arch/sandbox/cpu/u-boot.lds
index 727bcc35981..40c22143018 100644
--- a/arch/sandbox/cpu/u-boot.lds
+++ b/arch/sandbox/cpu/u-boot.lds
@@ -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;