haskus-system-0.6.0.0: Haskus system programming framework

Safe HaskellNone
LanguageHaskell2010

Haskus.Format.Elf.Segment

Contents

Synopsis

Documentation

data Segment Source #

Constructors

Segment 

Fields

Instances

data SegmentType Source #

Constructors

SegmentTypeNone

Program header table entry unused

SegmentTypeLoad

Loadable program segment

SegmentTypeDynamic

Dynamic linking information

SegmentTypeInterpreter

Program interpreter

SegmentTypeInfo

Auxiliary information

SegmentTypeSharedLib

Reserved

SegmentTypeSegmentHeader

Entry for header table itself

SegmentTypeTLS

Thread-local storage segment

SegmentTypeGNU_EH_Frame

GCC .eh_frame_hdr segment

SegmentTypeGNU_Stack

Indicates stack executability

SegmentTypeGNU_ReadOnlyAfterReloc

Read-only after relocation

SegmentTypeSunBSS

Sun Specific segment

SegmentTypeSunStack

Sun stack segment

SegmentTypeUnknown Word32

Unknown segment type

Internal

getSegmentCount :: Buffer -> Header -> PreHeader -> Word64 Source #

If the number of segment doesn't fit int 16 bits, then headerSegmentEntryCount is set to 0xffff and the field sectionInfo of section 0 contains the effective value.

getSegmentTable :: Buffer -> Header -> PreHeader -> Vector Segment Source #

Return the table of segments