ElfBuilder.validate

bool validate() const

Validate the internal state of this builder.

Checks that the class and endianness are valid, at least one section is defined, section links point to existing sections, and segment section references and layouts are consistent.

Returns

true if the builder configuration is valid, false otherwise.