summaryrefslogtreecommitdiff
path: root/src/base/loader
diff options
context:
space:
mode:
authorLisa Hsu <hsul@eecs.umich.edu>2008-12-05 12:09:29 -0500
committerLisa Hsu <hsul@eecs.umich.edu>2008-12-05 12:09:29 -0500
commitf1430941cf17fc15a8b86eba41f9c856ad9347d8 (patch)
tree336c094db8d31c3af51477b5b81f1293a426dc30 /src/base/loader
parente2c7618e508c6e5c0cbbd091eabb336f3e259465 (diff)
downloadgem5-f1430941cf17fc15a8b86eba41f9c856ad9347d8.tar.xz
This brings M5 closer to modernity - the kernel being advertised is newer so it won't die on binaries compiled with newer glibc's, and enables use of TLS-toolchain built binaries for ALPHA_SE by putting auxiliary vectors on the stack. There are some comments in the code to help. Finally, stats changes for ALPHA are from slight perturbations to the initial stack frame, all minimal diffs.
Diffstat (limited to 'src/base/loader')
-rw-r--r--src/base/loader/elf_object.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/base/loader/elf_object.cc b/src/base/loader/elf_object.cc
index f71c4456b..edaf323c7 100644
--- a/src/base/loader/elf_object.cc
+++ b/src/base/loader/elf_object.cc
@@ -291,6 +291,8 @@ ElfObject::ElfObject(const string &_filename, int _fd,
data.size = phdr.p_filesz;
data.fileImage = fileData + phdr.p_offset;
} else {
+ // If it's none of the above but is loadable,
+ // load the filesize worth of data
Segment extra;
extra.baseAddr = phdr.p_paddr;
extra.size = phdr.p_filesz;