mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-21 20:34:38 +00:00
efi: sandbox: Add required linker sections
The EFI loader code requires certain linker sections to exist. Add these for sandbox so that the EFI loader code will link. Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
30eef21fa0
commit
bb223b7f20
3 changed files with 42 additions and 1 deletions
|
@ -18,6 +18,35 @@ SECTIONS
|
||||||
__u_boot_sandbox_option_end = .;
|
__u_boot_sandbox_option_end = .;
|
||||||
|
|
||||||
__bss_start = .;
|
__bss_start = .;
|
||||||
|
|
||||||
|
.__efi_runtime_start : {
|
||||||
|
*(.__efi_runtime_start)
|
||||||
|
}
|
||||||
|
|
||||||
|
.efi_runtime : {
|
||||||
|
*(efi_runtime_text)
|
||||||
|
*(efi_runtime_data)
|
||||||
|
}
|
||||||
|
|
||||||
|
.__efi_runtime_stop : {
|
||||||
|
*(.__efi_runtime_stop)
|
||||||
|
}
|
||||||
|
|
||||||
|
.efi_runtime_rel_start :
|
||||||
|
{
|
||||||
|
*(.__efi_runtime_rel_start)
|
||||||
|
}
|
||||||
|
|
||||||
|
.efi_runtime_rel : {
|
||||||
|
*(.relefi_runtime_text)
|
||||||
|
*(.relefi_runtime_data)
|
||||||
|
}
|
||||||
|
|
||||||
|
.efi_runtime_rel_stop :
|
||||||
|
{
|
||||||
|
*(.__efi_runtime_rel_stop)
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
INSERT BEFORE .data;
|
INSERT BEFORE .data;
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
# (C) Copyright 2002-2006
|
# (C) Copyright 2002-2006
|
||||||
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
||||||
|
|
||||||
obj-y += interrupts.o
|
obj-y += interrupts.o sections.o
|
||||||
obj-$(CONFIG_PCI) += pci_io.o
|
obj-$(CONFIG_PCI) += pci_io.o
|
||||||
obj-$(CONFIG_CMD_BOOTM) += bootm.o
|
obj-$(CONFIG_CMD_BOOTM) += bootm.o
|
||||||
obj-$(CONFIG_CMD_BOOTZ) += bootm.o
|
obj-$(CONFIG_CMD_BOOTZ) += bootm.o
|
||||||
|
|
12
arch/sandbox/lib/sections.c
Normal file
12
arch/sandbox/lib/sections.c
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
// SPDX-License-Identifier: GPL-2.0+
|
||||||
|
/*
|
||||||
|
* Copyright 2013 Albert ARIBAUD <albert.u.boot@aribaud.net>
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
char __efi_runtime_start[0] __attribute__((section(".__efi_runtime_start")));
|
||||||
|
char __efi_runtime_stop[0] __attribute__((section(".__efi_runtime_stop")));
|
||||||
|
char __efi_runtime_rel_start[0]
|
||||||
|
__attribute__((section(".__efi_runtime_rel_start")));
|
||||||
|
char __efi_runtime_rel_stop[0]
|
||||||
|
__attribute__((section(".__efi_runtime_rel_stop")));
|
Loading…
Add table
Reference in a new issue