[U-Boot] [RFC PATCH v2 20/28] x86: Use sections header to obtain link symbols
Simon Glass
sjg at chromium.org
Sat Jan 7 01:24:55 CET 2012
These are defined in asm-generic/sections.h, so remove them from
architecture-specific files.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
arch/x86/include/asm/u-boot-x86.h | 8 --------
arch/x86/lib/board.c | 1 +
2 files changed, 1 insertions(+), 8 deletions(-)
diff --git a/arch/x86/include/asm/u-boot-x86.h b/arch/x86/include/asm/u-boot-x86.h
index 755f88a..d3e2f4c 100644
--- a/arch/x86/include/asm/u-boot-x86.h
+++ b/arch/x86/include/asm/u-boot-x86.h
@@ -24,14 +24,6 @@
#ifndef _U_BOOT_I386_H_
#define _U_BOOT_I386_H_ 1
-/* Exports from the Linker Script */
-extern ulong __text_start;
-extern ulong __data_end;
-extern ulong __rel_dyn_start;
-extern ulong __rel_dyn_end;
-extern ulong __bss_start;
-extern ulong __bss_end;
-
/* cpu/.../cpu.c */
int x86_cpu_init_r(void);
int cpu_init_r(void);
diff --git a/arch/x86/lib/board.c b/arch/x86/lib/board.c
index d742fec..b9e9f0a 100644
--- a/arch/x86/lib/board.c
+++ b/arch/x86/lib/board.c
@@ -41,6 +41,7 @@
#include <ide.h>
#include <serial.h>
#include <asm/u-boot-x86.h>
+#include <asm-generic/sections.h>
#include <elf.h>
#ifdef CONFIG_BITBANGMII
--
1.7.3.1
More information about the U-Boot
mailing list