ELF decoding. More...
#include <elf.h>
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. |
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.
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.