object_file.hh (13982:175e05a8ee6a) | object_file.hh (14017:815c925b777d) |
---|---|
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; --- 74 unchanged lines hidden (view full) --- 83 ObjectFile(const std::string &_filename, size_t _len, uint8_t *_data, 84 Arch _arch, OpSys _opSys); 85 86 public: 87 virtual ~ObjectFile(); 88 89 static const Addr maxAddr = std::numeric_limits<Addr>::max(); 90 | 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; --- 74 unchanged lines hidden (view full) --- 83 ObjectFile(const std::string &_filename, size_t _len, uint8_t *_data, 84 Arch _arch, OpSys _opSys); 85 86 public: 87 virtual ~ObjectFile(); 88 89 static const Addr maxAddr = std::numeric_limits<Addr>::max(); 90 |
91 virtual bool loadSections(PortProxy& mem_proxy, | 91 virtual bool loadSections(const PortProxy& mem_proxy, |
92 Addr mask = maxAddr, Addr offset = 0); 93 94 virtual bool loadAllSymbols(SymbolTable *symtab, Addr base = 0, 95 Addr offset = 0, Addr mask = maxAddr) = 0; 96 virtual bool loadGlobalSymbols(SymbolTable *symtab, Addr base = 0, 97 Addr offset = 0, Addr mask = maxAddr) = 0; 98 virtual bool loadLocalSymbols(SymbolTable *symtab, Addr base = 0, 99 Addr offset = 0, Addr mask = maxAddr) = 0; --- 24 unchanged lines hidden (view full) --- 124 125 Addr entry; 126 Addr globalPtr; 127 128 Section text; 129 Section data; 130 Section bss; 131 | 92 Addr mask = maxAddr, Addr offset = 0); 93 94 virtual bool loadAllSymbols(SymbolTable *symtab, Addr base = 0, 95 Addr offset = 0, Addr mask = maxAddr) = 0; 96 virtual bool loadGlobalSymbols(SymbolTable *symtab, Addr base = 0, 97 Addr offset = 0, Addr mask = maxAddr) = 0; 98 virtual bool loadLocalSymbols(SymbolTable *symtab, Addr base = 0, 99 Addr offset = 0, Addr mask = maxAddr) = 0; --- 24 unchanged lines hidden (view full) --- 124 125 Addr entry; 126 Addr globalPtr; 127 128 Section text; 129 Section data; 130 Section bss; 131 |
132 bool loadSection(Section *sec, PortProxy& mem_proxy, Addr mask, | 132 bool loadSection(Section *sec, const PortProxy& mem_proxy, Addr mask, |
133 Addr offset = 0); 134 void setGlobalPointer(Addr global_ptr) { globalPtr = global_ptr; } 135 136 public: 137 Addr entryPoint() const { return entry; } 138 139 Addr globalPointer() const { return globalPtr; } 140 --- 52 unchanged lines hidden --- | 133 Addr offset = 0); 134 void setGlobalPointer(Addr global_ptr) { globalPtr = global_ptr; } 135 136 public: 137 Addr entryPoint() const { return entry; } 138 139 Addr globalPointer() const { return globalPtr; } 140 --- 52 unchanged lines hidden --- |