* sec_invalid marks up any section that's non-debug. We do want to do
coverage analysis on these. Skipping dummy section #0 is the right
solution.
coverage_map->elf = elf;
coverage_map->allow_overlap = allow_overlap;
- for (size_t i = 0; i < elf->size; ++i)
+ for (size_t i = 1; i < elf->size; ++i)
{
struct sec *sec = elf->sec + i;
- if (elf->sec[i].id == sec_invalid)
- continue;
bool normal = (sec->shdr.sh_flags & mask) == mask;
bool warn = (sec->shdr.sh_flags & warn_mask) == warn_mask;