Libraries
ELF Source Code
 previous   up   next 

Function Summary
elfData
openElf (inout file: elfFile)
Open an ELF file.
array string
readSectionNames (in elfData: data)
Return the list of section names from the given ELF data.
elfSectionHeader
getSection (in elfData: data, in string: sectionName)
Get the section with the with the specified sectionName.
string
getSectionData (inout elfData: data, in string: sectionName)
Get the section data of the section sectionName.
string
getNote (inout elfData: data, in string: sectionName, in string: noteName)
Get the note noteName from section sectionName in ELF data.
string
getBuildId (inout elfData: data)
Get the build ID from the given ELF data.
array string
getDynsymNames (inout elfData: data, in string: sectionName, in string: dynstrSectionName)
Get the list of dynamic symbols from sectionName using dynstrSectionName.
array string
getDynsymNames (inout elfData: data, in string: sectionName)
Get the list of dynamic symbols from sectionName in ELF data.
array string
getDynsymNames (inout elfData: data)
Get the list of dynamic symbols from ELF data.
array string
getDynamicNeeds (inout elfData: data, in string: sectionName, in string: dynstrSectionName)
Get the list of dynamic data from sectionName using dynstrSectionName.
array string
getDynamicNeeds (inout elfData: data, in string: sectionName)
Get the list of dynamic data from sectionName in ELF data.
array string
getDynamicNeeds (inout elfData: data)
Get the list of dynamic data from ELF data.
array string
getVerNeeds (inout elfData: data, in string: sectionName, in string: dynstrSectionName)
Get the list of version needs from sectionName using dynstrSectionName.
array string
getVerNeeds (inout elfData: data, in string: sectionName)
Get the list of version needs from sectionName in ELF data.
array string
getVerNeeds (inout elfData: data)
Get the list of version needs from ELF data.

Function Detail

openElf

const func elfData: openElf (inout file: elfFile)

Open an ELF file.


readSectionNames

const func array string: readSectionNames (in elfData: data)

Return the list of section names from the given ELF data.


getSection

const func elfSectionHeader: getSection (in elfData: data, in string: sectionName)

Get the section with the with the specified sectionName.

Returns:
the section with the name sectionName, or an empty section if no section with this name exists.

getSectionData

const func string: getSectionData (inout elfData: data, in string: sectionName)

Get the section data of the section sectionName.


getNote

const func string: getNote (inout elfData: data, in string: sectionName, in string: noteName)

Get the note noteName from section sectionName in ELF data.


getBuildId

const func string: getBuildId (inout elfData: data)

Get the build ID from the given ELF data.


getDynsymNames

const func array string: getDynsymNames (inout elfData: data, in string: sectionName, in string: dynstrSectionName)

Get the list of dynamic symbols from sectionName using dynstrSectionName.

getDynsymNames(data, ".dynsym", ".dynstr")
Parameters:
data - ELF data.
sectionName - Name of section in data with dynamic symbols.
dynstrSectionName - Name of section with string data.
Returns:
an array with dynamic symbols.

getDynsymNames

const func array string: getDynsymNames (inout elfData: data, in string: sectionName)

Get the list of dynamic symbols from sectionName in ELF data.

getDynsymNames(data, ".dynsym")
Parameters:
data - ELF data.
sectionName - Name of section in data with dynamic symbols.
Returns:
an array with dynamic symbols.

getDynsymNames

const func array string: getDynsymNames (inout elfData: data)

Get the list of dynamic symbols from ELF data.

Parameters:
data - ELF data.
Returns:
an array with dynamic symbols.

getDynamicNeeds

const func array string: getDynamicNeeds (inout elfData: data, in string: sectionName, in string: dynstrSectionName)

Get the list of dynamic data from sectionName using dynstrSectionName.

getDynamicNeeds(elf, ".dynamic", ".dynstr")
Parameters:
data - ELF data.
sectionName - Name of section in data with dynamic data.
dynstrSectionName - Name of section with string data.
Returns:
an array with the dynamic data.

getDynamicNeeds

const func array string: getDynamicNeeds (inout elfData: data, in string: sectionName)

Get the list of dynamic data from sectionName in ELF data.

getDynamicNeeds(elf, ".dynamic")
Parameters:
data - ELF data.
sectionName - Name of section in data with dynamic data.
Returns:
an array with the dynamic data.

getDynamicNeeds

const func array string: getDynamicNeeds (inout elfData: data)

Get the list of dynamic data from ELF data.

Parameters:
data - ELF data.
Returns:
an array with the dynamic data.

getVerNeeds

const func array string: getVerNeeds (inout elfData: data, in string: sectionName, in string: dynstrSectionName)

Get the list of version needs from sectionName using dynstrSectionName.

getVerNeeds(elf, ".gnu.version_r", ".dynstr")
Parameters:
data - ELF data.
sectionName - Name of section in data with version needs.
dynstrSectionName - Name of section with string data.
Returns:
an array with the version needs.

getVerNeeds

const func array string: getVerNeeds (inout elfData: data, in string: sectionName)

Get the list of version needs from sectionName in ELF data.

getVerNeeds(elf, ".gnu.version_r")
Parameters:
data - ELF data.
sectionName - Name of section in data with version needs.
Returns:
an array with the version needs.

getVerNeeds

const func array string: getVerNeeds (inout elfData: data)

Get the list of version needs from ELF data.

Parameters:
data - ELF data.
Returns:
an array with the version needs.


 previous   up   next