Module coff

Module coff 

Expand description

Module for the COFF file format support in LIEF.

The Binary structure exposes the main API to inspect a COFF file. It can be instantiated, using either: crate::coff::parse, crate::coff::Binary::parse or crate::Binary::parse

let coff = lief::coff::parse("demo.obj").unwrap();
for section in coff.sections() {
    println!("section: {}", section.name());
}

Modules§

binary
header
COFF section module
relocation
COFF relocation module
section
COFF section module
string
symbol

Structs§

BigObjHeader
Header for COFF files that contain more than 65536 sections (compiled with /bigobj)
Binary
RegularHeader
Regular (default) header
Relocation
This class represents a COFF relocation
Section
String
Symbol
Structure that represents a COFF symbol.

Enums§

Header
This enum represents the different types of COFF header.

Functions§

is_coff
parse
Parse a COFF file from the given file path