|
gem5
|
#include "base/loader/object_file.hh"#include <fcntl.h>#include <sys/mman.h>#include <sys/types.h>#include <unistd.h>#include <zlib.h>#include <cstdio>#include <list>#include <string>#include "base/cprintf.hh"#include "base/loader/aout_object.hh"#include "base/loader/dtb_object.hh"#include "base/loader/ecoff_object.hh"#include "base/loader/elf_object.hh"#include "base/loader/raw_object.hh"#include "base/loader/symtab.hh"#include "mem/port_proxy.hh"Go to the source code of this file.
Functions | |
| static bool | hasGzipMagic (int fd) |
| static int | doGzipLoad (int fd) |
| ObjectFile * | createObjectFile (const string &fname, bool raw) |
| ObjectFile* createObjectFile | ( | const string & | fname, |
| bool | raw | ||
| ) |
Definition at line 157 of file object_file.cc.
References doGzipLoad(), fatal_if(), ArmISA::fd, hasGzipMagic(), ArmISA::len, RawObject::tryFile(), AoutObject::tryFile(), EcoffObject::tryFile(), DtbObject::tryFile(), and ElfObject::tryFile().
Referenced by AlphaSystem::AlphaSystem(), ArmSystem::ArmSystem(), FreebsdArmSystem::initState(), LinuxArmSystem::initState(), main(), mmapImpl(), SparcSystem::SparcSystem(), and System::System().
|
static |
Definition at line 110 of file object_file.cc.
References ArmISA::fd, MipsISA::p, MipsISA::r, and warn.
Referenced by createObjectFile().
|
static |
Definition at line 101 of file object_file.cc.
References panic_if().
Referenced by createObjectFile().