comparison packages/services/objloader/current/src/objelf.c @ 3041:0cc3efcba81d

* src/objelf.c:cyg_ldr_relocate_section(): Conditional block did shadow the return of error code. Fixed.
author sergeig
date Sat, 02 Jul 2011 10:13:31 +0000
parents 7cbaadc92c67
children
comparison
equal deleted inserted replaced
3040:9e11b1602177 3041:0cc3efcba81d
367 if (rc != 0) 367 if (rc != 0)
368 { 368 {
369 #if CYGPKG_SERVICES_OBJLOADER_DEBUG_LEVEL > 1 369 #if CYGPKG_SERVICES_OBJLOADER_DEBUG_LEVEL > 1
370 diag_printf("Error while relocating symbol: %s\n", 370 diag_printf("Error while relocating symbol: %s\n",
371 p_strtab + p_symtab[sym_index].st_name); 371 p_strtab + p_symtab[sym_index].st_name);
372 #endif
372 return -1; 373 return -1;
373 #endif
374 } 374 }
375 } 375 }
376 376
377 // After the relocation is done, the relocation table can be dumped. 377 // After the relocation is done, the relocation table can be dumped.
378 cyg_ldr_delete_elf_section(p, r_shndx); 378 cyg_ldr_delete_elf_section(p, r_shndx);