sections ( obj -- sections )


Vocabulary
elf

Inputs
objan object


Outputs
sectionsan object


Definition

GENERIC: sections ( obj -- sections )


Methods

M:: elf sections ( elf -- sections )
elf elf-header>> :> elf-header elf-header elf-sections [|
name header |
elf-header header elf-section-data
:> data name elf-header header data section boa
] { } assoc>map ;



M:: segment sections ( segment -- sections )
segment program-header>> :> program-header segment
elf-header>> :> elf-header program-header elf-header
elf-section-headers elf-segment-sections [| header |
elf-header header elf-section-name
:> name elf-header header elf-section-data
:> data name elf-header header data section boa
] { } map-as ;