raw_object.hh (10880:61a56f76222b) | raw_object.hh (11392:5967db4cff04) |
---|---|
1/* 2 * Copyright (c) 2006 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; --- 27 unchanged lines hidden (view full) --- 36class RawObject: public ObjectFile 37{ 38 protected: 39 RawObject(const std::string &_filename, size_t _len, 40 uint8_t *_data, Arch _arch, OpSys _opSys); 41 public: 42 virtual ~RawObject() {} 43 | 1/* 2 * Copyright (c) 2006 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; --- 27 unchanged lines hidden (view full) --- 36class RawObject: public ObjectFile 37{ 38 protected: 39 RawObject(const std::string &_filename, size_t _len, 40 uint8_t *_data, Arch _arch, OpSys _opSys); 41 public: 42 virtual ~RawObject() {} 43 |
44 virtual bool loadGlobalSymbols(SymbolTable *symtab, Addr addrMask = 45 std::numeric_limits<Addr>::max()); 46 virtual bool loadLocalSymbols(SymbolTable *symtab, Addr addrMask = 47 std::numeric_limits<Addr>::max()); | 44 virtual bool loadAllSymbols(SymbolTable *symtab, Addr base = 0, 45 Addr offset = 0, Addr addr_mask = maxAddr); 46 virtual bool loadGlobalSymbols(SymbolTable *symtab, Addr base = 0, 47 Addr offset = 0, 48 Addr addr_mask = maxAddr); 49 virtual bool loadLocalSymbols(SymbolTable *symtab, Addr base = 0, 50 Addr offset = 0, Addr addr_mask = maxAddr); |
48 49 static ObjectFile *tryFile(const std::string &fname, size_t len, 50 uint8_t *data); 51}; 52 53 54 55#endif // __BASE_LOADER_RAW_OBJECT_HH__ | 51 52 static ObjectFile *tryFile(const std::string &fname, size_t len, 53 uint8_t *data); 54}; 55 56 57 58#endif // __BASE_LOADER_RAW_OBJECT_HH__ |