Give a bit more info, if a symbol could not be found.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15884 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2006-01-09 05:23:50 +00:00
parent e2f7a6d61f
commit 42e94eb9b8

View File

@ -139,7 +139,7 @@ boot_arch_elf_relocate_rela(struct preloaded_image *image,
for (i = 0; i * (int)sizeof(struct Elf32_Rela) < rel_len; i++) {
#if CHATTY
dprintf("looking at rel type %d, offset 0x%x, sym 0x%x, addend 0x%x\n",
dprintf("looking at rel type %d, offset 0x%lx, sym 0x%lx, addend 0x%lx\n",
ELF32_R_TYPE(rel[i].r_info), rel[i].r_offset, ELF32_R_SYM(rel[i].r_info), rel[i].r_addend);
#endif
switch (ELF32_R_TYPE(rel[i].r_info)) {
@ -174,8 +174,14 @@ boot_arch_elf_relocate_rela(struct preloaded_image *image,
sym = SYMBOL(image, ELF32_R_SYM(rel[i].r_info));
vlErr = boot_elf_resolve_symbol(image, sym, &S);
if (vlErr<0)
if (vlErr < 0) {
dprintf("boot_arch_elf_relocate_rela(): Failed to relocate "
"entry index %d, rel type %d, offset 0x%lx, sym 0x%lx, "
"addend 0x%lx\n", i, ELF32_R_TYPE(rel[i].r_info),
rel[i].r_offset, ELF32_R_SYM(rel[i].r_info),
rel[i].r_addend);
return vlErr;
}
break;
}