bindings-bfd-0.1.3: Bindings for libbfd, a component of the GNU `binutils'

Bindings.Bfd

Contents

Synopsis

Types

data Bfd' Source

Instances

Functions

Initialization

init :: IO ()Source

Initialize the library. Call init before making any other calls.

Files

getTargetsAndFormatsSource

Arguments

:: FilePath

The file to query

-> IO [(TargetName, Format)] 

Returns a List of tuples representing the possible combinations of TargetName and Format valid for this FilePath.

Possible Exceptions: Same as open.

openSource

Arguments

:: FilePath

File to open

-> Maybe TargetName

Target

-> FileMode 
-> IO Bfd 

Opens a file with the given target and mode and returns a bfd object on success. If the target is Nothing then the file is opened with the default target.

Possible exceptions: NoMemory (if any allocation fails), SystemCall (if open failed), and InvalidTarget (if supplied target is not supported).

Note: open does not validate that the supplied TargetName is appropriate for the supplied file.

Format

Foo

Sections

Target

Foo

Symbols

Relocations

Testing