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

Bindings.Bfd.Section

Contents

Synopsis

Types

Functions

Creating

getContents :: Section -> Bfd -> FilePtr -> Size -> IO ContentsSource

Flags

getFlags :: Section -> IO [Flags]Source

Returns a list of the Sections Flags.

SectionName

Section Size

getSize :: Section -> IO SizeSource

Return the Size of the Section.

getLimit :: Section -> Bfd -> IO IntSource

If the raw size (see getRawSize) is not zero then return the raw size. Otherwise return the division of the size (see getSize) by the octets per byte (see getOctetsPerByte).

Addressing

setVma :: Section -> Vma -> IO ()Source

Sets both the VMA and LMA of the Section to the given Vma and sets the Sections user_set_vma flag to True.

getVma :: Section -> IO VmaSource

Returns the Vma of the Section.

getLma :: Section -> IO VmaSource

Returns the LMA of the Section.

setAlignment :: Section -> Int -> IO ()Source

Sets the alignment power of the Section.

getAlignment :: Section -> IO IntSource

Returns the alignment power of the Section.

Testing

isCommon :: Section -> IO BoolSource

Return True if IsCommon is found in the Sections Flags.

Internal