Static Public Member Functions

Elf Class Reference

ELF decoding. More...

#include <elf.h>

List of all members.

Static Public Member Functions

static unsigned long loaded_memsize (char *module, unsigned long modsize)
 Get the size of the PT_LOAD sections.
static unsigned decode_elf (char *module, unsigned long modsize, char *phys_mem, unsigned long &rip, unsigned long &maxptr, unsigned long mem_size, unsigned long mem_offset, unsigned long long magic)
 Decode an elf32 binary.

Detailed Description

ELF decoding.

Copyright (C) 2007-2008, Bernhard Kauer <bk@vmmon.org> Economic rights: Technische Universitaet Dresden (Germany)

This file is part of Vancouver.

Vancouver is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

Vancouver is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License version 2 for more details.


Member Function Documentation

static unsigned Elf::decode_elf ( char *  module,
unsigned long  modsize,
char *  phys_mem,
unsigned long &  rip,
unsigned long &  maxptr,
unsigned long  mem_size,
unsigned long  mem_offset,
unsigned long long  magic 
) [inline, static]

Decode an elf32 binary.

I.e. copy the ELF segments from ELF image pointed by module to the memory at phys_mem.

static unsigned long Elf::loaded_memsize ( char *  module,
unsigned long  modsize 
) [inline, static]

Get the size of the PT_LOAD sections.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines