summaryrefslogtreecommitdiff
path: root/src/base/loader/aout_object.cc
diff options
context:
space:
mode:
authorCurtis Dunham <Curtis.Dunham@arm.com>2015-07-03 10:14:34 -0400
committerCurtis Dunham <Curtis.Dunham@arm.com>2015-07-03 10:14:34 -0400
commite385ae0c72993d1d58256324d0fe425247fad207 (patch)
treed133e9497e8f08ed370a0fc425b2e8f561632156 /src/base/loader/aout_object.cc
parentd9f8f076135870de5382f2d2ec3b185b6ece6b16 (diff)
downloadgem5-e385ae0c72993d1d58256324d0fe425247fad207.tar.xz
base: remove fd from object loaders
All the object loaders directly examine the (already completely loaded by object_file.cc) memory image. There is no current motivation to keep the fd around.
Diffstat (limited to 'src/base/loader/aout_object.cc')
-rw-r--r--src/base/loader/aout_object.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/base/loader/aout_object.cc b/src/base/loader/aout_object.cc
index 756f03a9e..07acc8fbd 100644
--- a/src/base/loader/aout_object.cc
+++ b/src/base/loader/aout_object.cc
@@ -39,11 +39,11 @@
using namespace std;
ObjectFile *
-AoutObject::tryFile(const string &fname, int fd, size_t len, uint8_t *data)
+AoutObject::tryFile(const string &fname, size_t len, uint8_t *data)
{
if (!N_BADMAG(*(aout_exechdr *)data)) {
// right now this is only used for Alpha PAL code
- return new AoutObject(fname, fd, len, data,
+ return new AoutObject(fname, len, data,
ObjectFile::Alpha, ObjectFile::UnknownOpSys);
}
else {
@@ -52,10 +52,10 @@ AoutObject::tryFile(const string &fname, int fd, size_t len, uint8_t *data)
}
-AoutObject::AoutObject(const string &_filename, int _fd,
+AoutObject::AoutObject(const string &_filename,
size_t _len, uint8_t *_data,
Arch _arch, OpSys _opSys)
- : ObjectFile(_filename, _fd, _len, _data, _arch, _opSys)
+ : ObjectFile(_filename, _len, _data, _arch, _opSys)
{
execHdr = (aout_exechdr *)fileData;