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

Bindings.Bfd.Symbol

Contents

Synopsis

Types

Addressing

getBase :: Symbol -> IO VmaSource

Returns the Vma of the Section that the symbol belongs to.

setValue :: Symbol -> Vma -> IO ()Source

Set the offset of the Symbol within its Section.

getValue :: Symbol -> IO VmaSource

Returns the offset of the Symbol within its Section.

getValue' :: Symbol -> IO VmaSource

Returns the absolute Vma of the Symbol (that is, its getBase + getValue.

getBfd :: Symbol -> IO BfdSource

Returns the Bfd that the Symbol belongs to.

Note: If the returned Bfd should not be passed to close or closeAllDone there will be memory leaks.

getFlavour :: Symbol -> IO FlavourSource

If the Symbol has the Synthetic flag set then return Unknown, otherwise returns getFlavour on the Symbols 'Bfd'\'s Target.

SymbolName

setName :: Symbol -> SymbolName -> IO ()Source

Sets the SymbolName of the Symbol.

Note: The memory allocated to the SymbolName is never freed.

Sections

Internal