validateElf

fnbool validateElf(ElfFile file, ValidationLevel level = ValidationLevel.STANDARD)

Comprehensively validate an ELF file.

Performs all validation checks on the ELF file at the specified level.

Parameters

fileThe ELF file to validate.
levelThe validation level to use (default: STANDARD).

Throws

ElfFormatException if the file is invalid.

ElfValidationException if the file fails validation.

Returns

true if the file passes all validation checks.