1/* 2 * Copyright (c) 2002-2004 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 15 unchanged lines hidden (view full) --- 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * 28 * Authors: Nathan Binkert 29 * Steve Reinhardt 30 */ 31 |
32#include "base/loader/object_file.hh" 33 34#include <fcntl.h> |
35#include <sys/mman.h> 36#include <sys/types.h> |
37#include <unistd.h> 38#include <zlib.h> 39 40#include <cstdio> 41#include <list> 42#include <string> 43 |
44#include "base/cprintf.hh" |
45#include "base/loader/aout_object.hh" 46#include "base/loader/dtb_object.hh" 47#include "base/loader/ecoff_object.hh" 48#include "base/loader/elf_object.hh" |
49#include "base/loader/raw_object.hh" 50#include "base/loader/symtab.hh" |
51#include "mem/port_proxy.hh" 52 53using namespace std; 54 55ObjectFile::ObjectFile(const string &_filename, 56 size_t _len, uint8_t *_data, 57 Arch _arch, OpSys _op_sys) 58 : filename(_filename), fileData(_data), len(_len), --- 155 unchanged lines hidden --- |