elf32: stop section extraction after the first error.

This commit is contained in:
Daniel Beer 2012-07-18 14:00:16 +12:00
parent 1e36394136
commit 5584136b69
1 changed files with 3 additions and 1 deletions

View File

@ -331,8 +331,10 @@ int elf32_extract(FILE *in, binfile_imgcb_t cb, void *user_data)
Elf32_Shdr *s = &info.file_shdrs[i];
if (s->sh_type == SHT_PROGBITS && s->sh_flags & SHF_ALLOC &&
feed_section(&info, in, s, cb, user_data) < 0)
feed_section(&info, in, s, cb, user_data) < 0) {
ret = -1;
break;
}
}
if (info.string_tab)