summaryrefslogtreecommitdiff
path: root/arch/x86/lib/relocate.c
diff options
context:
space:
mode:
authorGabe Black <gabeblack@chromium.org>2012-11-03 11:41:25 +0000
committerSimon Glass <sjg@chromium.org>2012-12-06 14:30:41 -0800
commit842d33874fddd8b6d2005987c53d05958985441a (patch)
tree7bf9a2b37658a0af37046150cc0f794a83a96da7 /arch/x86/lib/relocate.c
parent32f98735f9ada2bcfb114088f6226be8a22943fa (diff)
downloadu-boot-imx-842d33874fddd8b6d2005987c53d05958985441a.zip
u-boot-imx-842d33874fddd8b6d2005987c53d05958985441a.tar.gz
u-boot-imx-842d33874fddd8b6d2005987c53d05958985441a.tar.bz2
x86: Make the upper bound on relocated symbols closed instead of open
This seems to be a bug. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86/lib/relocate.c')
-rw-r--r--arch/x86/lib/relocate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/lib/relocate.c b/arch/x86/lib/relocate.c
index c0b9b29..23edca9 100644
--- a/arch/x86/lib/relocate.c
+++ b/arch/x86/lib/relocate.c
@@ -80,7 +80,7 @@ int do_elf_reloc_fixups(void)
/* Check that the target points into .text */
if (*offset_ptr_ram >= CONFIG_SYS_TEXT_BASE &&
- *offset_ptr_ram <
+ *offset_ptr_ram <=
(CONFIG_SYS_TEXT_BASE + size)) {
*offset_ptr_ram += gd->reloc_off;
}