From 5213b70b4211301bef881be4e74203f56e2cf0e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 18 Jul 2002 20:42:52 +0000 Subject: [PATCH] Fixed a warning I introduced earlier. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@313 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/core/elf.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/kernel/core/elf.c b/src/kernel/core/elf.c index ef44e40db3..1e50bee2b0 100644 --- a/src/kernel/core/elf.c +++ b/src/kernel/core/elf.c @@ -477,7 +477,7 @@ static int elf_relocate(struct elf_image_info *image, const char *sym_prepend) { int res = B_NO_ERROR; - int i; + PRINT(("top of elf_relocate\n")); // deal with the rels first @@ -498,12 +498,13 @@ elf_relocate(struct elf_image_info *image, const char *sym_prepend) } if (image->rela) { - dprintf("RELA relocations not supported\n"); #if ELF_TRACE + int i; for(i = 1; i * (int)sizeof(struct Elf32_Rela) < image->rela_len; i++) { dprintf("rela: type %d\n", ELF32_R_TYPE(image->rela[i].r_info)); } #endif + dprintf("RELA relocations not supported\n"); return EPERM; } return res;