diff options
author | Steve Reinhardt <stever@eecs.umich.edu> | 2004-11-18 10:59:30 -0500 |
---|---|---|
committer | Steve Reinhardt <stever@eecs.umich.edu> | 2004-11-18 10:59:30 -0500 |
commit | 45198407d11aecc856d0418466e46a94286425f9 (patch) | |
tree | fd00357a00a1e56c29aac9e9465a51cc73a2cf5e /base/loader | |
parent | bd878a09045e811b0ad626ec15ae9e5fd76d62e1 (diff) | |
parent | e78b455cf646cdfa55cb746290b28dda0a73d6e3 (diff) | |
download | gem5-45198407d11aecc856d0418466e46a94286425f9.tar.xz |
Merge
--HG--
extra : convert_revision : 9d499125f4e8c8659f214c3290cb51679ad0ade2
Diffstat (limited to 'base/loader')
-rw-r--r-- | base/loader/ecoff_object.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/base/loader/ecoff_object.cc b/base/loader/ecoff_object.cc index bab75944d..714f1d7b8 100644 --- a/base/loader/ecoff_object.cc +++ b/base/loader/ecoff_object.cc @@ -108,14 +108,14 @@ EcoffObject::loadGlobalSymbols(SymbolTable *symtab) return false; if (fileHdr->f_magic != ECOFF_MAGIC_ALPHA) { - cprintf("wrong magic\n"); + warn("loadGlobalSymbols: wrong magic on %s\n", filename); return false; } ecoff_symhdr *syms = (ecoff_symhdr *)(fileData + fileHdr->f_symptr); if (syms->magic != magicSym2) { - cprintf("bad symbol header magic\n"); - exit(1); + warn("loadGlobalSymbols: bad symbol header magic on %s\n", filename); + return false; } ecoff_extsym *ext_syms = (ecoff_extsym *)(fileData + syms->cbExtOffset); @@ -137,14 +137,14 @@ EcoffObject::loadLocalSymbols(SymbolTable *symtab) return false; if (fileHdr->f_magic != ECOFF_MAGIC_ALPHA) { - cprintf("wrong magic\n"); + warn("loadGlobalSymbols: wrong magic on %s\n", filename); return false; } ecoff_symhdr *syms = (ecoff_symhdr *)(fileData + fileHdr->f_symptr); if (syms->magic != magicSym2) { - cprintf("bad symbol header magic\n"); - exit(1); + warn("loadGlobalSymbols: bad symbol header magic on %s\n", filename); + return false; } ecoff_sym *local_syms = (ecoff_sym *)(fileData + syms->cbSymOffset); |