- type Bfd = Ptr Bfd'
- data Bfd'
- type FileMode = String
- init :: IO ()
- getTargetsAndFormats :: FilePath -> IO [(TargetName, Format)]
- open :: FilePath -> Maybe TargetName -> FileMode -> IO Bfd
- close :: Bfd -> IO Bool
- checkFormat :: Bfd -> Format -> IO Bool
- getByteorder :: Bfd -> IO Endian
- getHeaderByteorder :: Bfd -> IO Endian
- getDisassembler :: Bfd -> IO Disassembler
- getFilename :: Bfd -> IO String
- getFlags :: Bfd -> IO [Flags]
- getObjectFlags :: Bfd -> IO [Flags]
- getSectionFlags :: Bfd -> IO [Flags]
- getFlavour :: Bfd -> IO Flavour
- getFormat :: Bfd -> IO Format
- getMachine :: Bfd -> IO Int
- getOctetsPerByte :: Bfd -> IO Int
- getSectionByName :: Bfd -> SectionName -> IO Section
- getSections :: Bfd -> IO [Section]
- getTarget :: Bfd -> IO Target
- getMyArchive :: Bfd -> IO (Maybe Bfd)
- getSymbolTable :: Bfd -> IO SymbolTable
- getDynamicSymbolTable :: Bfd -> IO SymbolTable
- getDynamicRelocations :: Bfd -> SymbolTable -> IO [Relocation]
- isBigEndian :: Bfd -> IO Bool
- isLittleEndian :: Bfd -> IO Bool
- isHeaderBigEndian :: Bfd -> IO Bool
- isHeaderLittleEndian :: Bfd -> IO Bool
- isCoffFamily :: Bfd -> IO Bool
Types
Functions
Initialization
Files
:: 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
.
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
getByteorder :: Bfd -> IO EndianSource
getHeaderByteorder :: Bfd -> IO EndianSource
getFilename :: Bfd -> IO StringSource
getObjectFlags :: Bfd -> IO [Flags]Source
getSectionFlags :: Bfd -> IO [Flags]Source
getFlavour :: Bfd -> IO FlavourSource
getMachine :: Bfd -> IO IntSource
getOctetsPerByte :: Bfd -> IO IntSource
Sections
getSectionByName :: Bfd -> SectionName -> IO SectionSource
getSections :: Bfd -> IO [Section]Source
Target
Foo
Symbols
getSymbolTable :: Bfd -> IO SymbolTableSource
Relocations
getDynamicRelocations :: Bfd -> SymbolTable -> IO [Relocation]Source
Testing
isBigEndian :: Bfd -> IO BoolSource
isLittleEndian :: Bfd -> IO BoolSource
isHeaderBigEndian :: Bfd -> IO BoolSource
isHeaderLittleEndian :: Bfd -> IO BoolSource
isCoffFamily :: Bfd -> IO BoolSource