Deleted Added
sdiff udiff text old ( 13634:748418e0ca3f ) new ( 13982:175e05a8ee6a )
full compact
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;

--- 25 unchanged lines hidden (view full) ---

34
35#include <limits>
36#include <string>
37
38#include "base/logging.hh"
39#include "base/types.hh"
40
41class PortProxy;
42class SymbolTable;
43
44class ObjectFile
45{
46 public:
47
48 enum Arch {
49 UnknownArch,

--- 95 unchanged lines hidden (view full) ---

145 size_t bssSize() const { return bss.size; }
146
147 /* This function allows you to override the base address where
148 * a binary is going to be loaded or set it if the binary is just a
149 * blob that doesn't include an object header.
150 * @param a address to load the binary/text section at
151 */
152 void setTextBase(Addr a) { text.baseAddr = a; }
153};
154
155ObjectFile *createObjectFile(const std::string &fname, bool raw = false);
156
157
158#endif // __OBJECT_FILE_HH__