]> git.sur5r.net Git - u-boot/blobdiff - arch/x86/lib/relocate.c
x86: Build vga video code only if CONFIG_VIDEO_VGA is defined
[u-boot] / arch / x86 / lib / relocate.c
index 200baaba6a2707c28fabc82cb93054158cdff5c0..23edca95269f36a7215f040fc1420e009a942541 100644 (file)
@@ -80,12 +80,12 @@ 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;
                        }
                }
-       } while (re_src++ < re_end);
+       } while (++re_src < re_end);
 
        return 0;
 }