summaryrefslogtreecommitdiff
path: root/src/base/loader/object_file.hh
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2007-01-22 16:14:06 -0500
committerAli Saidi <saidi@eecs.umich.edu>2007-01-22 16:14:06 -0500
commit5c1d631f36bc0d1a99875fb54b92a5df510fa9e3 (patch)
tree1417488f2cbc8509f495cf1ca54c3fd46652c518 /src/base/loader/object_file.hh
parente347b49a4edfe89ed5c5352b6c1b93b69ab00134 (diff)
downloadgem5-5c1d631f36bc0d1a99875fb54b92a5df510fa9e3.tar.xz
check if an executable is dynamic and die if it is
Only implemented for ELf. Someone might want to implement it for ecoff and some point src/base/loader/elf_object.cc: src/base/loader/elf_object.hh: src/base/loader/object_file.cc: src/base/loader/object_file.hh: add a function to check if an executable is dynamic src/sim/process.cc: check if an executable is dynamic and die if it is --HG-- extra : convert_revision : 830b1b50b08a5abaf895ce6251bbc702c986eebf
Diffstat (limited to 'src/base/loader/object_file.hh')
-rw-r--r--src/base/loader/object_file.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/base/loader/object_file.hh b/src/base/loader/object_file.hh
index 6e98332c5..18e6482be 100644
--- a/src/base/loader/object_file.hh
+++ b/src/base/loader/object_file.hh
@@ -83,6 +83,8 @@ class ObjectFile
virtual bool loadLocalSymbols(SymbolTable *symtab, Addr addrMask =
std::numeric_limits<Addr>::max()) = 0;
+ virtual bool isDynamic();
+
Arch getArch() const { return arch; }
OpSys getOpSys() const { return opSys; }