ecoff_object.cc (2665:a124942bacb8) ecoff_object.cc (3812:eaa215123a26)
1/*
2 * Copyright (c) 2003-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 72 unchanged lines hidden (view full) ---

81
82 DPRINTFR(Loader, "text: 0x%x %d\ndata: 0x%x %d\nbss: 0x%x %d\n",
83 text.baseAddr, text.size, data.baseAddr, data.size,
84 bss.baseAddr, bss.size);
85}
86
87
88bool
1/*
2 * Copyright (c) 2003-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 72 unchanged lines hidden (view full) ---

81
82 DPRINTFR(Loader, "text: 0x%x %d\ndata: 0x%x %d\nbss: 0x%x %d\n",
83 text.baseAddr, text.size, data.baseAddr, data.size,
84 bss.baseAddr, bss.size);
85}
86
87
88bool
89EcoffObject::loadGlobalSymbols(SymbolTable *symtab)
89EcoffObject::loadGlobalSymbols(SymbolTable *symtab, Addr addrMask)
90{
91 if (!symtab)
92 return false;
93
94 if (fileHdr->f_magic != ECOFF_MAGIC_ALPHA) {
95 warn("loadGlobalSymbols: wrong magic on %s\n", filename);
96 return false;
97 }

--- 12 unchanged lines hidden (view full) ---

110 if (entry->iss != -1)
111 symtab->insert(entry->value, ext_strings + entry->iss);
112 }
113
114 return true;
115}
116
117bool
90{
91 if (!symtab)
92 return false;
93
94 if (fileHdr->f_magic != ECOFF_MAGIC_ALPHA) {
95 warn("loadGlobalSymbols: wrong magic on %s\n", filename);
96 return false;
97 }

--- 12 unchanged lines hidden (view full) ---

110 if (entry->iss != -1)
111 symtab->insert(entry->value, ext_strings + entry->iss);
112 }
113
114 return true;
115}
116
117bool
118EcoffObject::loadLocalSymbols(SymbolTable *symtab)
118EcoffObject::loadLocalSymbols(SymbolTable *symtab, Addr addrMask)
119{
120 if (!symtab)
121 return false;
122
123 if (fileHdr->f_magic != ECOFF_MAGIC_ALPHA) {
124 warn("loadGlobalSymbols: wrong magic on %s\n", filename);
125 return false;
126 }

--- 29 unchanged lines hidden ---
119{
120 if (!symtab)
121 return false;
122
123 if (fileHdr->f_magic != ECOFF_MAGIC_ALPHA) {
124 warn("loadGlobalSymbols: wrong magic on %s\n", filename);
125 return false;
126 }

--- 29 unchanged lines hidden ---