]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - arch/x86/lib/relocate.c
x86: Add an 'mtrr' command to list and adjust MTRRs
[karo-tx-uboot.git] / arch / x86 / lib / relocate.c
index faca38fff4b0c9fc67f7cfaeaab6682b6340f81f..b33586b54c0311a9b596cbcca23ed357ab78b3e0 100644 (file)
@@ -76,6 +76,9 @@ int do_elf_reloc_fixups(void)
        /* The size of the region of u-boot that runs out of RAM. */
        uintptr_t size = (uintptr_t)&__bss_end - (uintptr_t)&__text_start;
 
+       if (re_src == re_end)
+               panic("No relocation data");
+
        do {
                /* Get the location from the relocation entry */
                offset_ptr_rom = (Elf32_Addr *)re_src->r_offset;