diff options
author | Ali Saidi <Ali.Saidi@ARM.com> | 2012-09-07 14:20:52 -0500 |
---|---|---|
committer | Ali Saidi <Ali.Saidi@ARM.com> | 2012-09-07 14:20:52 -0500 |
commit | 3742b19b368eb371e2fd8fefc388a8ca65a3113d (patch) | |
tree | adf9020114623845ae6e88d37be156205175628f /src/base/loader/object_file.cc | |
parent | 8fc0cef6111bdcad5964f7213a66fbf232f2baf0 (diff) | |
download | gem5-3742b19b368eb371e2fd8fefc388a8ca65a3113d.tar.xz |
loader: initialize all memory in the ObjectFile objects.
Some bare metal build flows seem to build binaries that we aren't necessarily
expecting. Initialize everything to 0, so we don't make any assumptions about
what is or isn't in the binary.
Diffstat (limited to 'src/base/loader/object_file.cc')
-rw-r--r-- | src/base/loader/object_file.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/base/loader/object_file.cc b/src/base/loader/object_file.cc index 420611d83..80fc9c2f9 100644 --- a/src/base/loader/object_file.cc +++ b/src/base/loader/object_file.cc @@ -53,7 +53,7 @@ ObjectFile::ObjectFile(const string &_filename, int _fd, size_t _len, uint8_t *_data, Arch _arch, OpSys _opSys) : filename(_filename), descriptor(_fd), fileData(_data), len(_len), - arch(_arch), opSys(_opSys) + arch(_arch), opSys(_opSys), globalPtr(0) { } |