haskus-system-0.7.0.0: Haskus system programming framework

Safe HaskellNone
LanguageHaskell2010

Haskus.Format.Elf.PreHeader

Contents

Description

ELF preheader: doesn't depend on the arch

Synopsis

Documentation

data PreHeader Source #

Pre-header

Constructors

PreHeader 

data WordSize :: * #

Size of a machine word

Constructors

WordSize32

32-bit

WordSize64

64-bit

data OSABI Source #

ABI

Constructors

ABI_SYSV

UNIX System V ABI

ABI_HPUX

HP-UX

ABI_NETBSD

NetBSD

ABI_LINUX

Linux

ABI_SOLARIS

Sun Solaris

ABI_AIX

IBM AIX

ABI_IRIX

SGI Irix

ABI_FREEBSD

FreeBSD

ABI_TRU64

Compaq TRU64 UNIX

ABI_MODESTO

Novell Modesto

ABI_OPENBSD

OpenBSD

ABI_ARM_AEABI

ARM EABI

ABI_ARM

ARM

ABI_STANDALONE

Standalone (embedded) application

ABI_CUSTOM Word8

Unknown ABI

getPreHeader :: Get PreHeader Source #

Getter for the pre-header

putPreHeader :: PreHeader -> Put Source #

Putter for a pre-header

Internal

getGetters :: PreHeader -> (Get Word8, Get Word16, Get Word32, Get Word64, Get Word64) Source #

Get the getters appropriate for the ELF file

getPutters :: PreHeader -> (Word8 -> Put, Word16 -> Put, Word32 -> Put, Word64 -> Put, Word64 -> Put) Source #

Get the putters appropriate for the ELF file

elfCurrentVersion :: Word8 Source #

Current version (still 1...)