bindings-bfd-1.0.0: Bindings for libbfd, a library of the GNU `binutils'

Bindings.Bfd.Target

Contents

Description

The Target represents a particular back-end used to interpret the Bfd.

Synopsis

Types

Platform

listSupported :: IO [TargetName]Source

Return a list of target names that can possibly be interpreted by this particular platform.

setDefault :: TargetName -> IO BoolSource

Set the default target name for use with open etc. when TargetName is equal to "default" or empty. Returns True if successful.

Possible exceptions: InvalidTarget

Byte Order

Symtabs

Relocations

Testing

Byte Order

isBigEndian :: Target -> IO BoolSource

Returns True if the Targets byte order (see getByteorder) is Big. Otherwise False.

isLittleEndian :: Target -> IO BoolSource

Returns True if the Targets byte order (see getByteorder) is Little. Otherwise False.

isHeaderBigEndian :: Target -> IO BoolSource

Returns True if the Targets header byte order (see getHeaderByteOrder) is Big. Otherwise False.

isHeaderLittleEndian :: Target -> IO BoolSource

Returns True if the Targets header byte order (see getHeaderByteOrder) is Little. Otherwise False.

Coff Family

isCoffFamily :: Target -> IO BoolSource

Returns True if the Flavour of the Target is either Coff or Xcoff. Otherwise False.

Internal