[U-Boot] [PATCH] x86: Fix a recently added bug in the relocation code
Gabe Black
gabeblack at chromium.org
Tue Nov 15 05:55:26 CET 2011
Signed-off-by: Gabe Black <gabeblack at chromium.org>
---
arch/x86/lib/board.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/arch/x86/lib/board.c b/arch/x86/lib/board.c
index 18e0ede..4a791dd 100644
--- a/arch/x86/lib/board.c
+++ b/arch/x86/lib/board.c
@@ -220,6 +220,9 @@ static int do_elf_reloc_fixups(void)
Elf32_Addr *offset_ptr_rom;
Elf32_Addr *offset_ptr_ram;
+ /* The size of the region of u-boot that runs out of RAM. */
+ uintptr_t size = (uintptr_t)&__bss_end - (uintptr_t)&__text_start;
+
do {
/* Get the location from the relocation entry */
offset_ptr_rom = (Elf32_Addr *)re_src->r_offset;
--
1.7.3.1
More information about the U-Boot
mailing list