Friedrich-Alexander-Universität Erlangen-Nürnberg  /   Technische Fakultät  /   Department Informatik

Parser and loader for a basic subset of the Executable and Linkable Formats. More...

#include <utils/elf.h>

Public Member Functions

 Elf (void *data, size_t len)
 Constructor. More...
 
bool isValid () const
 Validate file. More...
 

Detailed Description

Parser and loader for a basic subset of the Executable and Linkable Formats.

Note
Relocation is not supported (yet).

Constructor & Destructor Documentation

◆ Elf()

Elf::Elf ( void *  data,
size_t  len 
)
inline

Constructor.

Parameters
dataBuffer with the (full) contents of the ELF file
lensize of buffer

Member Function Documentation

◆ isValid()

bool Elf::isValid ( ) const

Validate file.

Checks magic header and internal references

Returns
'true' if contents look sane

The documentation for this class was generated from the following files:
  • utils/elf.h
  • utils/elf.cc