32 #ifndef __OBJECT_FILE_HH__
33 #define __OBJECT_FILE_HH__
80 ObjectFile(
const std::string &_filename,
size_t _len, uint8_t *_data,
104 {
panic(
"mapSize() should only be called on relocatable objects\n"); }
106 {
panic(
"updateBias() should only be called on relocatable objects\n"); }
157 #endif // __OBJECT_FILE_HH__
virtual bool loadGlobalSymbols(SymbolTable *symtab, Addr base=0, Addr offset=0, Addr mask=maxAddr)=0
Addr globalPointer() const
virtual bool loadLocalSymbols(SymbolTable *symtab, Addr base=0, Addr offset=0, Addr mask=maxAddr)=0
virtual ObjectFile * getInterpreter() const
ObjectFile * createObjectFile(const std::string &fname, bool raw=false)
virtual bool loadWeakSymbols(SymbolTable *symtab, Addr base=0, Addr offset=0, Addr mask=maxAddr)
virtual void updateBias(Addr bias_addr)
ObjectFile(const std::string &_filename, size_t _len, uint8_t *_data, Arch _arch, OpSys _opSys)
void setGlobalPointer(Addr global_ptr)
const std::string filename
Defines global host-dependent types: Counter, Tick, and (indirectly) {int,uint}{8,16,32,64}_t.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
virtual bool loadSections(PortProxy &mem_proxy, Addr mask=maxAddr, Addr offset=0)
This object is a proxy for a structural port, to be used for debug accesses.
virtual Addr bias() const
virtual bool loadAllSymbols(SymbolTable *symtab, Addr base=0, Addr offset=0, Addr mask=maxAddr)=0
static const Addr maxAddr
bool loadSection(Section *sec, PortProxy &mem_proxy, Addr mask, Addr offset=0)
virtual Addr mapSize() const
virtual bool relocatable() const
This class encapsulates the types, structures, constants, functions, and syscall-number mappings spec...