* intentionally simple, and does the bare minimum needed to fixup the
* relocated U-Boot - in particular, it does not check for overflows.
*/
-static void apply_reloc(unsigned int type, void *addr, long off)
+static void apply_reloc(unsigned int type, void *addr, long off, uint8_t *buf)
{
uint32_t u32;
break;
default:
- panic("Unhandled reloc type %u\n", type);
+ panic("Unhandled reloc type %u (@ %p), bss used before relocation?\n",
+ type, buf);
}
}
break;
addr += read_uint(&buf) << 2;
- apply_reloc(type, (void *)addr, off);
+ apply_reloc(type, (void *)addr, off, buf);
}
/* Ensure the icache is coherent */