summaryrefslogtreecommitdiffstats
path: root/arch/x86/lib
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2018-06-18 17:23:10 +0200
committerAlexander Graf <agraf@suse.de>2018-07-25 14:57:43 +0200
commitdae73c4cdc862017a10d09588571e7f98de0cdd4 (patch)
tree4bd29866cc76788b3d3dfb38b9cef7927fa85709 /arch/x86/lib
parentbc028919e4e3c1e69437ba0d93751ff099f6c6c9 (diff)
downloadu-boot-dae73c4cdc862017a10d09588571e7f98de0cdd4.tar.gz
u-boot-dae73c4cdc862017a10d09588571e7f98de0cdd4.tar.xz
u-boot-dae73c4cdc862017a10d09588571e7f98de0cdd4.zip
elf: Move x86 reloc defines to common elf.h
We need to know about x86 relocation definitions even in cases where we don't officially build against the x86 target, such as with sandbox. So let's move the x86 definitions into the common elf header, where all other architectures already have them. Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/x86/lib')
-rw-r--r--arch/x86/lib/reloc_ia32_efi.c1
-rw-r--r--arch/x86/lib/reloc_x86_64_efi.c1
2 files changed, 0 insertions, 2 deletions
diff --git a/arch/x86/lib/reloc_ia32_efi.c b/arch/x86/lib/reloc_ia32_efi.c
index a262533c0f..d56cd50bd9 100644
--- a/arch/x86/lib/reloc_ia32_efi.c
+++ b/arch/x86/lib/reloc_ia32_efi.c
@@ -10,7 +10,6 @@
#include <common.h>
#include <efi.h>
#include <elf.h>
-#include <asm/elf.h>
efi_status_t EFIAPI _relocate(long ldbase, Elf32_Dyn *dyn)
{
diff --git a/arch/x86/lib/reloc_x86_64_efi.c b/arch/x86/lib/reloc_x86_64_efi.c
index 59d6f8d3d3..2694de7110 100644
--- a/arch/x86/lib/reloc_x86_64_efi.c
+++ b/arch/x86/lib/reloc_x86_64_efi.c
@@ -12,7 +12,6 @@
#include <common.h>
#include <efi.h>
#include <elf.h>
-#include <asm/elf.h>
efi_status_t EFIAPI _relocate(long ldbase, Elf64_Dyn *dyn)
{