summaryrefslogtreecommitdiffstats
path: root/arch/sandbox/lib/sections.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2018-05-16 09:42:23 -0600
committerAlexander Graf <agraf@suse.de>2018-06-03 15:27:21 +0200
commitbb223b7f20269c0743f7446540b6acf148262dbb (patch)
tree9a7c7d7fc6482e85ad587618721ffb1d6519c37a /arch/sandbox/lib/sections.c
parent30eef21fa041635fb8327ef9001d78cb187c359f (diff)
downloadu-boot-bb223b7f20269c0743f7446540b6acf148262dbb.tar.gz
u-boot-bb223b7f20269c0743f7446540b6acf148262dbb.tar.xz
u-boot-bb223b7f20269c0743f7446540b6acf148262dbb.zip
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>
Diffstat (limited to 'arch/sandbox/lib/sections.c')
-rw-r--r--arch/sandbox/lib/sections.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/sandbox/lib/sections.c b/arch/sandbox/lib/sections.c
new file mode 100644
index 0000000000..697a8167dd
--- /dev/null
+++ b/arch/sandbox/lib/sections.c
@@ -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")));