瀏覽代碼

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>
Gabe Black 12 年之前
父節點
當前提交
842d33874f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      arch/x86/lib/relocate.c

+ 1 - 1
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;
 			}