Skip to main content

elf_has_section

Function elf_has_section 

Source
pub(super) fn elf_has_section(
    file: &mut (impl Read + Seek),
    name: &[u8],
) -> Result<bool>
Expand description

Looks the name up in the ELF section table. Matching it anywhere in the file also accepts binaries that merely contain the string — xtask itself among them — and llvm-cov refuses to export those.