object_file.cc (11391:484c04261226) | object_file.cc (11793:ef606668d247) |
---|---|
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 | 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> |
|
32#include <sys/mman.h> 33#include <sys/types.h> | 35#include <sys/mman.h> 36#include <sys/types.h> |
34#include <fcntl.h> | |
35#include <unistd.h> 36#include <zlib.h> 37 38#include <cstdio> 39#include <list> 40#include <string> 41 | 37#include <unistd.h> 38#include <zlib.h> 39 40#include <cstdio> 41#include <list> 42#include <string> 43 |
44#include "base/cprintf.hh" |
|
42#include "base/loader/aout_object.hh" 43#include "base/loader/dtb_object.hh" 44#include "base/loader/ecoff_object.hh" 45#include "base/loader/elf_object.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" |
46#include "base/loader/object_file.hh" | |
47#include "base/loader/raw_object.hh" 48#include "base/loader/symtab.hh" | 49#include "base/loader/raw_object.hh" 50#include "base/loader/symtab.hh" |
49#include "base/cprintf.hh" | |
50#include "mem/port_proxy.hh" 51 52using namespace std; 53 54ObjectFile::ObjectFile(const string &_filename, 55 size_t _len, uint8_t *_data, 56 Arch _arch, OpSys _op_sys) 57 : filename(_filename), fileData(_data), len(_len), --- 155 unchanged lines hidden --- | 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 --- |