summaryrefslogtreecommitdiff
path: root/base/loader/elf_object.cc
diff options
context:
space:
mode:
authorAndrew Schultz <alschult@umich.edu>2004-02-21 20:31:08 -0500
committerAndrew Schultz <alschult@umich.edu>2004-02-21 20:31:08 -0500
commitc82113d02296c40e1a2eac84ba55ae7ffbcf4419 (patch)
tree1ca4ba2b062f7c7cacefa84fe4db3ba7b63ffbbd /base/loader/elf_object.cc
parent43787ad8639f6ed32d99acb7b1347e58797fde6c (diff)
downloadgem5-c82113d02296c40e1a2eac84ba55ae7ffbcf4419.tar.xz
Load local kernel symbols, and set aic7xxx_no_reset to prevent an initial
(very painful) bus reset from occuring base/loader/elf_object.cc: Fixed to allow proper loading of local symbols --HG-- extra : convert_revision : 5c9a1f4d7b5748a1c8cabdfd67763c21f988f8fd
Diffstat (limited to 'base/loader/elf_object.cc')
-rw-r--r--base/loader/elf_object.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/loader/elf_object.cc b/base/loader/elf_object.cc
index 9889b9d4c..98e3198a6 100644
--- a/base/loader/elf_object.cc
+++ b/base/loader/elf_object.cc
@@ -225,7 +225,7 @@ ElfObject::loadSomeSymbols(SymbolTable *symtab, int binding)
// loop through all the symbols, only loading global ones
for (ii = 0; ii < count; ++ii) {
gelf_getsym(data, ii, &sym);
- if (GELF_ST_BIND(sym.st_info) & binding) {
+ if (GELF_ST_BIND(sym.st_info) == binding) {
symtab->insert(sym.st_value,
elf_strptr(elf, shdr.sh_link, sym.st_name));
}