ecoff_object.hh (3812:eaa215123a26) | ecoff_object.hh (10880:61a56f76222b) |
---|---|
1/* 2 * Copyright (c) 2003-2005 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; --- 31 unchanged lines hidden (view full) --- 40 41class EcoffObject : public ObjectFile 42{ 43 protected: 44 ecoff_exechdr *execHdr; 45 ecoff_filehdr *fileHdr; 46 ecoff_aouthdr *aoutHdr; 47 | 1/* 2 * Copyright (c) 2003-2005 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; --- 31 unchanged lines hidden (view full) --- 40 41class EcoffObject : public ObjectFile 42{ 43 protected: 44 ecoff_exechdr *execHdr; 45 ecoff_filehdr *fileHdr; 46 ecoff_aouthdr *aoutHdr; 47 |
48 EcoffObject(const std::string &_filename, int _fd, 49 size_t _len, uint8_t *_data, | 48 EcoffObject(const std::string &_filename, size_t _len, uint8_t *_data, |
50 Arch _arch, OpSys _opSys); 51 52 public: 53 virtual ~EcoffObject() {} 54 55 virtual bool loadGlobalSymbols(SymbolTable *symtab, Addr addrMask = 56 std::numeric_limits<Addr>::max()); 57 virtual bool loadLocalSymbols(SymbolTable *symtab, Addr addrMask = 58 std::numeric_limits<Addr>::max()); 59 | 49 Arch _arch, OpSys _opSys); 50 51 public: 52 virtual ~EcoffObject() {} 53 54 virtual bool loadGlobalSymbols(SymbolTable *symtab, Addr addrMask = 55 std::numeric_limits<Addr>::max()); 56 virtual bool loadLocalSymbols(SymbolTable *symtab, Addr addrMask = 57 std::numeric_limits<Addr>::max()); 58 |
60 static ObjectFile *tryFile(const std::string &fname, int fd, | 59 static ObjectFile *tryFile(const std::string &fname, |
61 size_t len, uint8_t *data); 62}; 63 64#endif // __ECOFF_OBJECT_HH__ | 60 size_t len, uint8_t *data); 61}; 62 63#endif // __ECOFF_OBJECT_HH__ |