Modules

executable_formats

moduleSource
macOSLinuxWindowswasm

#import "executable_formats";

Procedures#

Bitfields#

Mach-O#

(file_content: string) -> bool
(file_content: string, path := "(unspecified file)") -> (success: bool, Mach_O)

COFF#

(file_content: string) -> bool
(file_content: string, path := "(unspecified file)", verbose := false, start_offset := 0) -> (success: bool, Coff)
(file_content: string) -> (bool, coff_start: int)
(file_content: string, path := "(unspecified file)", verbose := false) -> (success: bool, Coff)

ELF#

(file_content: string) -> bool
(file_content: string, path := "(unspecified file)") -> (success: bool, elf: Elf)

Universal#

Relocations#

Lexer#

TBD#

(file_content: string) -> bool

Archive#

(file_content: string) -> bool
(content: string, archive_filename: string, verbose := false) -> (success: bool, Archive)

Types#

Elfstruct
:: struct
Coffstruct
:: struct

Constants#

:: s32

Explicit public ABI transcribed from the executable-formats spec.