object_file.hh (10810:683ab55819fd) | object_file.hh (10880:61a56f76222b) |
---|---|
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; --- 55 unchanged lines hidden (view full) --- 64 Linux, 65 Solaris, 66 LinuxArmOABI, 67 FreeBSD 68 }; 69 70 protected: 71 const std::string filename; | 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; --- 55 unchanged lines hidden (view full) --- 64 Linux, 65 Solaris, 66 LinuxArmOABI, 67 FreeBSD 68 }; 69 70 protected: 71 const std::string filename; |
72 int descriptor; | |
73 uint8_t *fileData; 74 size_t len; 75 76 Arch arch; 77 OpSys opSys; 78 | 72 uint8_t *fileData; 73 size_t len; 74 75 Arch arch; 76 OpSys opSys; 77 |
79 ObjectFile(const std::string &_filename, int _fd, 80 size_t _len, uint8_t *_data, | 78 ObjectFile(const std::string &_filename, size_t _len, uint8_t *_data, |
81 Arch _arch, OpSys _opSys); 82 83 public: 84 virtual ~ObjectFile(); 85 86 void close(); 87 88 virtual bool loadSections(PortProxy& memProxy, Addr addrMask = --- 60 unchanged lines hidden --- | 79 Arch _arch, OpSys _opSys); 80 81 public: 82 virtual ~ObjectFile(); 83 84 void close(); 85 86 virtual bool loadSections(PortProxy& memProxy, Addr addrMask = --- 60 unchanged lines hidden --- |