From: Gabe Black Date: Sat, 3 Nov 2012 11:41:25 +0000 (+0000) Subject: x86: Make the upper bound on relocated symbols closed instead of open X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=842d33874fddd8b6d2005987c53d05958985441a;p=u-boot.git x86: Make the upper bound on relocated symbols closed instead of open This seems to be a bug. Signed-off-by: Simon Glass --- diff --git a/arch/x86/lib/relocate.c b/arch/x86/lib/relocate.c index c0b9b2970e..23edca9526 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; }