Fixed a warning I introduced earlier.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@313 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2002-07-18 20:42:52 +00:00
parent bc934681ba
commit 5213b70b42
+3 -2
View File
@@ -477,7 +477,7 @@ static int
elf_relocate(struct elf_image_info *image, const char *sym_prepend) elf_relocate(struct elf_image_info *image, const char *sym_prepend)
{ {
int res = B_NO_ERROR; int res = B_NO_ERROR;
int i;
PRINT(("top of elf_relocate\n")); PRINT(("top of elf_relocate\n"));
// deal with the rels first // deal with the rels first
@@ -498,12 +498,13 @@ elf_relocate(struct elf_image_info *image, const char *sym_prepend)
} }
if (image->rela) { if (image->rela) {
dprintf("RELA relocations not supported\n");
#if ELF_TRACE #if ELF_TRACE
int i;
for(i = 1; i * (int)sizeof(struct Elf32_Rela) < image->rela_len; 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)); dprintf("rela: type %d\n", ELF32_R_TYPE(image->rela[i].r_info));
} }
#endif #endif
dprintf("RELA relocations not supported\n");
return EPERM; return EPERM;
} }
return res; return res;