blob: 3e159c75f41133d26768fdd25bb1f5fe3f9d0787 [file] [log] [blame]
Brian Gaeke972d3d72003-10-16 04:43:15 +00001//===-- llvm-nm.cpp - Symbol table dumping utility for llvm ---------------===//
Misha Brukman3da94ae2005-04-22 00:00:37 +00002//
John Criswell7c0e0222003-10-20 17:47:21 +00003// The LLVM Compiler Infrastructure
4//
Chris Lattner21c62da2007-12-29 20:44:31 +00005// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
Misha Brukman3da94ae2005-04-22 00:00:37 +00007//
John Criswell7c0e0222003-10-20 17:47:21 +00008//===----------------------------------------------------------------------===//
Brian Gaeke972d3d72003-10-16 04:43:15 +00009//
10// This program is a utility that works like traditional Unix "nm",
Gabor Greifa99be512007-07-05 17:07:56 +000011// that is, it prints out the names of symbols in a bitcode file,
Brian Gaeke972d3d72003-10-16 04:43:15 +000012// along with some information about each symbol.
Misha Brukman3da94ae2005-04-22 00:00:37 +000013//
Brian Gaeke972d3d72003-10-16 04:43:15 +000014// This "nm" does not print symbols' addresses. It supports many of
15// the features of GNU "nm", including its different output formats.
16//
17//===----------------------------------------------------------------------===//
18
Owen Anderson8b477ed2009-07-01 16:58:40 +000019#include "llvm/LLVMContext.h"
Brian Gaeke972d3d72003-10-16 04:43:15 +000020#include "llvm/Module.h"
Chris Lattner4d5aad22007-05-06 05:36:18 +000021#include "llvm/Bitcode/ReaderWriter.h"
Chris Lattner44dadff2007-05-06 09:29:57 +000022#include "llvm/Bitcode/Archive.h"
Michael J. Spencer9142ae22011-09-27 19:37:18 +000023#include "llvm/Object/Archive.h"
Michael J. Spencer20d335a2011-01-20 06:38:57 +000024#include "llvm/Object/ObjectFile.h"
Reid Spencer551ccae2004-09-01 22:55:40 +000025#include "llvm/Support/CommandLine.h"
Michael J. Spencer20d335a2011-01-20 06:38:57 +000026#include "llvm/Support/FileSystem.h"
Chris Lattnerc30598b2006-12-06 01:18:01 +000027#include "llvm/Support/ManagedStatic.h"
Chris Lattner4d5aad22007-05-06 05:36:18 +000028#include "llvm/Support/MemoryBuffer.h"
Chris Lattnercc14d252009-03-06 05:34:10 +000029#include "llvm/Support/PrettyStackTrace.h"
Michael J. Spencera740e192011-12-13 23:17:29 +000030#include "llvm/Support/Program.h"
Dan Gohman65f57c22009-07-15 16:35:29 +000031#include "llvm/Support/raw_ostream.h"
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000032#include "llvm/Support/Signals.h"
Michael J. Spencer20d335a2011-01-20 06:38:57 +000033#include "llvm/Support/Format.h"
Michael J. Spencer333fb042010-12-09 17:36:48 +000034#include "llvm/Support/system_error.h"
Jeff Cohenca5183d2007-03-05 00:00:42 +000035#include <algorithm>
Brian Gaeke972d3d72003-10-16 04:43:15 +000036#include <cctype>
Alkis Evlogimenos09233fb2004-04-21 16:11:40 +000037#include <cerrno>
Brian Gaeke08d03c72003-11-19 21:52:09 +000038#include <cstring>
Michael J. Spencer20d335a2011-01-20 06:38:57 +000039#include <vector>
Brian Gaeked0fde302003-11-11 22:41:34 +000040using namespace llvm;
Michael J. Spencer20d335a2011-01-20 06:38:57 +000041using namespace object;
Brian Gaeked0fde302003-11-11 22:41:34 +000042
Brian Gaeke972d3d72003-10-16 04:43:15 +000043namespace {
44 enum OutputFormatTy { bsd, sysv, posix };
45 cl::opt<OutputFormatTy>
46 OutputFormat("format",
47 cl::desc("Specify output format"),
48 cl::values(clEnumVal(bsd, "BSD format"),
49 clEnumVal(sysv, "System V format"),
Misha Brukman3da94ae2005-04-22 00:00:37 +000050 clEnumVal(posix, "POSIX.2 format"),
Chris Lattner4d143ee2004-07-16 00:08:28 +000051 clEnumValEnd), cl::init(bsd));
Brian Gaeke972d3d72003-10-16 04:43:15 +000052 cl::alias OutputFormat2("f", cl::desc("Alias for --format"),
53 cl::aliasopt(OutputFormat));
54
Misha Brukman3da94ae2005-04-22 00:00:37 +000055 cl::list<std::string>
Gabor Greifa99be512007-07-05 17:07:56 +000056 InputFilenames(cl::Positional, cl::desc("<input bitcode files>"),
Chris Lattnerfc046d52003-10-16 18:45:23 +000057 cl::ZeroOrMore);
Brian Gaeke972d3d72003-10-16 04:43:15 +000058
59 cl::opt<bool> UndefinedOnly("undefined-only",
60 cl::desc("Show only undefined symbols"));
61 cl::alias UndefinedOnly2("u", cl::desc("Alias for --undefined-only"),
62 cl::aliasopt(UndefinedOnly));
63
64 cl::opt<bool> DefinedOnly("defined-only",
65 cl::desc("Show only defined symbols"));
66
67 cl::opt<bool> ExternalOnly("extern-only",
68 cl::desc("Show only external symbols"));
69 cl::alias ExternalOnly2("g", cl::desc("Alias for --extern-only"),
70 cl::aliasopt(ExternalOnly));
71
72 cl::opt<bool> BSDFormat("B", cl::desc("Alias for --format=bsd"));
73 cl::opt<bool> POSIXFormat("P", cl::desc("Alias for --format=posix"));
74
Michael J. Spencer20d335a2011-01-20 06:38:57 +000075 cl::opt<bool> PrintFileName("print-file-name",
76 cl::desc("Precede each symbol with the object file it came from"));
77
78 cl::alias PrintFileNameA("A", cl::desc("Alias for --print-file-name"),
79 cl::aliasopt(PrintFileName));
80 cl::alias PrintFileNameo("o", cl::desc("Alias for --print-file-name"),
81 cl::aliasopt(PrintFileName));
82
83 cl::opt<bool> DebugSyms("debug-syms",
84 cl::desc("Show all symbols, even debugger only"));
85 cl::alias DebugSymsa("a", cl::desc("Alias for --debug-syms"),
86 cl::aliasopt(DebugSyms));
87
88 cl::opt<bool> NumericSort("numeric-sort",
89 cl::desc("Sort symbols by address"));
90 cl::alias NumericSortn("n", cl::desc("Alias for --numeric-sort"),
91 cl::aliasopt(NumericSort));
92 cl::alias NumericSortv("v", cl::desc("Alias for --numeric-sort"),
93 cl::aliasopt(NumericSort));
94
95 cl::opt<bool> NoSort("no-sort",
96 cl::desc("Show symbols in order encountered"));
97 cl::alias NoSortp("p", cl::desc("Alias for --no-sort"),
98 cl::aliasopt(NoSort));
99
100 cl::opt<bool> PrintSize("print-size",
101 cl::desc("Show symbol size instead of address"));
102 cl::alias PrintSizeS("S", cl::desc("Alias for --print-size"),
103 cl::aliasopt(PrintSize));
104
105 cl::opt<bool> SizeSort("size-sort", cl::desc("Sort symbols by size"));
106
107 bool PrintAddress = true;
108
Brian Gaeke972d3d72003-10-16 04:43:15 +0000109 bool MultipleFiles = false;
110
111 std::string ToolName;
Chris Lattnerd74ea2b2006-05-24 17:04:05 +0000112}
Brian Gaeke972d3d72003-10-16 04:43:15 +0000113
Michael J. Spencera740e192011-12-13 23:17:29 +0000114
115static void error(Twine message, Twine path = Twine()) {
116 errs() << ToolName << ": " << path << ": " << message << ".\n";
117}
118
119static bool error(error_code ec, Twine path = Twine()) {
120 if (ec) {
121 error(ec.message(), path);
122 return true;
123 }
124 return false;
125}
126
Michael J. Spencer20d335a2011-01-20 06:38:57 +0000127namespace {
128 struct NMSymbol {
129 uint64_t Address;
130 uint64_t Size;
131 char TypeChar;
132 StringRef Name;
133 };
134
135 static bool CompareSymbolAddress(const NMSymbol &a, const NMSymbol &b) {
136 if (a.Address < b.Address)
137 return true;
138 else if (a.Address == b.Address && a.Name < b.Name)
139 return true;
140 else
141 return false;
142
143 }
144
145 static bool CompareSymbolSize(const NMSymbol &a, const NMSymbol &b) {
146 if (a.Size < b.Size)
147 return true;
148 else if (a.Size == b.Size && a.Name < b.Name)
149 return true;
150 else
151 return false;
152 }
153
154 static bool CompareSymbolName(const NMSymbol &a, const NMSymbol &b) {
155 return a.Name < b.Name;
156 }
157
158 StringRef CurrentFilename;
159 typedef std::vector<NMSymbol> SymbolListT;
160 SymbolListT SymbolList;
161}
162
163static void SortAndPrintSymbolList() {
164 if (!NoSort) {
165 if (NumericSort)
166 std::sort(SymbolList.begin(), SymbolList.end(), CompareSymbolAddress);
167 else if (SizeSort)
168 std::sort(SymbolList.begin(), SymbolList.end(), CompareSymbolSize);
169 else
170 std::sort(SymbolList.begin(), SymbolList.end(), CompareSymbolName);
171 }
172
173 if (OutputFormat == posix && MultipleFiles) {
174 outs() << '\n' << CurrentFilename << ":\n";
175 } else if (OutputFormat == bsd && MultipleFiles) {
176 outs() << "\n" << CurrentFilename << ":\n";
177 } else if (OutputFormat == sysv) {
178 outs() << "\n\nSymbols from " << CurrentFilename << ":\n\n"
179 << "Name Value Class Type"
180 << " Size Line Section\n";
181 }
182
183 for (SymbolListT::iterator i = SymbolList.begin(),
184 e = SymbolList.end(); i != e; ++i) {
185 if ((i->TypeChar != 'U') && UndefinedOnly)
186 continue;
187 if ((i->TypeChar == 'U') && DefinedOnly)
188 continue;
189 if (SizeSort && !PrintAddress && i->Size == UnknownAddressOrSize)
190 continue;
191
192 char SymbolAddrStr[10] = "";
193 char SymbolSizeStr[10] = "";
194
195 if (OutputFormat == sysv || i->Address == object::UnknownAddressOrSize)
196 strcpy(SymbolAddrStr, " ");
197 if (OutputFormat == sysv)
198 strcpy(SymbolSizeStr, " ");
199
200 if (i->Address != object::UnknownAddressOrSize)
Stepan Dyatkovskiy9df3b912011-10-28 13:07:32 +0000201 format("%08"PRIx64, i->Address).print(SymbolAddrStr, sizeof(SymbolAddrStr));
Michael J. Spencer20d335a2011-01-20 06:38:57 +0000202 if (i->Size != object::UnknownAddressOrSize)
Stepan Dyatkovskiy9df3b912011-10-28 13:07:32 +0000203 format("%08"PRIx64, i->Size).print(SymbolSizeStr, sizeof(SymbolSizeStr));
Michael J. Spencer20d335a2011-01-20 06:38:57 +0000204
205 if (OutputFormat == posix) {
206 outs() << i->Name << " " << i->TypeChar << " "
207 << SymbolAddrStr << SymbolSizeStr << "\n";
208 } else if (OutputFormat == bsd) {
209 if (PrintAddress)
210 outs() << SymbolAddrStr << ' ';
211 if (PrintSize) {
212 outs() << SymbolSizeStr;
213 if (i->Size != object::UnknownAddressOrSize)
214 outs() << ' ';
215 }
216 outs() << i->TypeChar << " " << i->Name << "\n";
217 } else if (OutputFormat == sysv) {
218 std::string PaddedName (i->Name);
219 while (PaddedName.length () < 20)
220 PaddedName += " ";
221 outs() << PaddedName << "|" << SymbolAddrStr << "| "
222 << i->TypeChar
223 << " | |" << SymbolSizeStr << "| |\n";
224 }
225 }
226
227 SymbolList.clear();
228}
229
Chris Lattnerc30598b2006-12-06 01:18:01 +0000230static char TypeCharForSymbol(GlobalValue &GV) {
Lauro Ramos Venancio4a828ee2007-06-27 22:08:09 +0000231 if (GV.isDeclaration()) return 'U';
Chris Lattnerc30598b2006-12-06 01:18:01 +0000232 if (GV.hasLinkOnceLinkage()) return 'C';
Dale Johannesen7d5633e2008-05-16 22:44:18 +0000233 if (GV.hasCommonLinkage()) return 'C';
Chris Lattnerc30598b2006-12-06 01:18:01 +0000234 if (GV.hasWeakLinkage()) return 'W';
Lauro Ramos Venancio4a828ee2007-06-27 22:08:09 +0000235 if (isa<Function>(GV) && GV.hasInternalLinkage()) return 't';
Chris Lattnerc30598b2006-12-06 01:18:01 +0000236 if (isa<Function>(GV)) return 'T';
Lauro Ramos Venancio4a828ee2007-06-27 22:08:09 +0000237 if (isa<GlobalVariable>(GV) && GV.hasInternalLinkage()) return 'd';
Chris Lattnerc30598b2006-12-06 01:18:01 +0000238 if (isa<GlobalVariable>(GV)) return 'D';
Lauro Ramos Venancio4a828ee2007-06-27 22:08:09 +0000239 if (const GlobalAlias *GA = dyn_cast<GlobalAlias>(&GV)) {
240 const GlobalValue *AliasedGV = GA->getAliasedGlobal();
241 if (isa<Function>(AliasedGV)) return 'T';
242 if (isa<GlobalVariable>(AliasedGV)) return 'D';
243 }
244 return '?';
Brian Gaeke972d3d72003-10-16 04:43:15 +0000245}
246
Chris Lattnerc30598b2006-12-06 01:18:01 +0000247static void DumpSymbolNameForGlobalValue(GlobalValue &GV) {
Chris Lattner266c7bb2009-04-13 05:44:34 +0000248 // Private linkage and available_externally linkage don't exist in symtab.
Bill Wendling4e34d502010-08-24 20:00:52 +0000249 if (GV.hasPrivateLinkage() ||
250 GV.hasLinkerPrivateLinkage() ||
251 GV.hasLinkerPrivateWeakLinkage() ||
252 GV.hasLinkerPrivateWeakDefAutoLinkage() ||
253 GV.hasAvailableExternallyLinkage())
Bill Wendling5e721d72010-07-01 21:55:59 +0000254 return;
Chris Lattner266c7bb2009-04-13 05:44:34 +0000255 char TypeChar = TypeCharForSymbol(GV);
Rafael Espindolabb46f522009-01-15 20:18:42 +0000256 if (GV.hasLocalLinkage () && ExternalOnly)
Brian Gaeke972d3d72003-10-16 04:43:15 +0000257 return;
Michael J. Spencer20d335a2011-01-20 06:38:57 +0000258
259 NMSymbol s;
260 s.Address = object::UnknownAddressOrSize;
261 s.Size = object::UnknownAddressOrSize;
262 s.TypeChar = TypeChar;
263 s.Name = GV.getName();
264 SymbolList.push_back(s);
Brian Gaeke972d3d72003-10-16 04:43:15 +0000265}
266
Chris Lattnerc30598b2006-12-06 01:18:01 +0000267static void DumpSymbolNamesFromModule(Module *M) {
Michael J. Spencer20d335a2011-01-20 06:38:57 +0000268 CurrentFilename = M->getModuleIdentifier();
Chris Lattner266c7bb2009-04-13 05:44:34 +0000269 std::for_each (M->begin(), M->end(), DumpSymbolNameForGlobalValue);
270 std::for_each (M->global_begin(), M->global_end(),
Lauro Ramos Venancio4a828ee2007-06-27 22:08:09 +0000271 DumpSymbolNameForGlobalValue);
Chris Lattner266c7bb2009-04-13 05:44:34 +0000272 std::for_each (M->alias_begin(), M->alias_end(),
Lauro Ramos Venancio4a828ee2007-06-27 22:08:09 +0000273 DumpSymbolNameForGlobalValue);
Michael J. Spencer20d335a2011-01-20 06:38:57 +0000274
275 SortAndPrintSymbolList();
276}
277
278static void DumpSymbolNamesFromObject(ObjectFile *obj) {
Michael J. Spencer25b15772011-06-25 17:55:23 +0000279 error_code ec;
Michael J. Spencer01a4db32011-10-07 19:46:12 +0000280 for (symbol_iterator i = obj->begin_symbols(),
281 e = obj->end_symbols();
282 i != e; i.increment(ec)) {
Michael J. Spencer25b15772011-06-25 17:55:23 +0000283 if (error(ec)) break;
284 bool internal;
285 if (error(i->isInternal(internal))) break;
286 if (!DebugSyms && internal)
Michael J. Spencer20d335a2011-01-20 06:38:57 +0000287 continue;
288 NMSymbol s;
289 s.Size = object::UnknownAddressOrSize;
290 s.Address = object::UnknownAddressOrSize;
Michael J. Spencer25b15772011-06-25 17:55:23 +0000291 if (PrintSize || SizeSort) {
292 if (error(i->getSize(s.Size))) break;
293 }
Michael J. Spencer20d335a2011-01-20 06:38:57 +0000294 if (PrintAddress)
Danil Malyshevb0436a72011-11-29 17:40:10 +0000295 if (error(i->getAddress(s.Address))) break;
Michael J. Spencer25b15772011-06-25 17:55:23 +0000296 if (error(i->getNMTypeChar(s.TypeChar))) break;
297 if (error(i->getName(s.Name))) break;
Michael J. Spencer20d335a2011-01-20 06:38:57 +0000298 SymbolList.push_back(s);
299 }
300
Michael J. Spencer001c9202011-06-25 17:54:50 +0000301 CurrentFilename = obj->getFileName();
Michael J. Spencer20d335a2011-01-20 06:38:57 +0000302 SortAndPrintSymbolList();
Brian Gaeke972d3d72003-10-16 04:43:15 +0000303}
304
Chris Lattnerc30598b2006-12-06 01:18:01 +0000305static void DumpSymbolNamesFromFile(std::string &Filename) {
Michael J. Spencera740e192011-12-13 23:17:29 +0000306 if (Filename != "-" && !sys::fs::exists(Filename)) {
307 errs() << ToolName << ": '" << Filename << "': " << "No such file\n";
308 return;
309 }
310
311 OwningPtr<MemoryBuffer> Buffer;
312 if (error(MemoryBuffer::getFileOrSTDIN(Filename, Buffer), Filename))
313 return;
314
315 sys::fs::file_magic magic = sys::fs::identify_magic(Buffer->getBuffer());
316
Owen Anderson0d7c6952009-07-15 22:16:10 +0000317 LLVMContext &Context = getGlobalContext();
Brian Gaeke972d3d72003-10-16 04:43:15 +0000318 std::string ErrorMessage;
Michael J. Spencera740e192011-12-13 23:17:29 +0000319 if (magic == sys::fs::file_magic::bitcode) {
Chris Lattner4d5aad22007-05-06 05:36:18 +0000320 Module *Result = 0;
Michael J. Spencera740e192011-12-13 23:17:29 +0000321 Result = ParseBitcodeFile(Buffer.get(), Context, &ErrorMessage);
Nuno Lopes8018f5d2009-09-10 14:56:31 +0000322 if (Result) {
Chris Lattner4d5aad22007-05-06 05:36:18 +0000323 DumpSymbolNamesFromModule(Result);
Nuno Lopes8018f5d2009-09-10 14:56:31 +0000324 delete Result;
Michael J. Spencera740e192011-12-13 23:17:29 +0000325 } else {
326 error(ErrorMessage, Filename);
Brian Gaeke08d03c72003-11-19 21:52:09 +0000327 return;
328 }
Michael J. Spencera740e192011-12-13 23:17:29 +0000329 } else if (magic == sys::fs::file_magic::archive) {
330 OwningPtr<Binary> arch;
331 if (error(object::createBinary(Buffer.take(), arch), Filename))
332 return;
333
Michael J. Spencer9142ae22011-09-27 19:37:18 +0000334 if (object::Archive *a = dyn_cast<object::Archive>(arch.get())) {
335 for (object::Archive::child_iterator i = a->begin_children(),
336 e = a->end_children(); i != e; ++i) {
337 OwningPtr<Binary> child;
338 if (error_code ec = i->getAsBinary(child)) {
339 // Try opening it as a bitcode file.
Benjamin Kramer1a9908d2011-10-10 13:10:04 +0000340 OwningPtr<MemoryBuffer> buff(i->getBuffer());
Michael J. Spencer9142ae22011-09-27 19:37:18 +0000341 Module *Result = 0;
342 if (buff)
Benjamin Kramer1a9908d2011-10-10 13:10:04 +0000343 Result = ParseBitcodeFile(buff.get(), Context, &ErrorMessage);
Michael J. Spencer9142ae22011-09-27 19:37:18 +0000344
345 if (Result) {
346 DumpSymbolNamesFromModule(Result);
347 delete Result;
348 }
349 continue;
350 }
351 if (object::ObjectFile *o = dyn_cast<ObjectFile>(child.get())) {
352 outs() << o->getFileName() << ":\n";
353 DumpSymbolNamesFromObject(o);
354 }
355 }
356 }
Michael J. Spencera740e192011-12-13 23:17:29 +0000357 } else if (magic.is_object()) {
Michael J. Spencer76fb9b02011-06-25 17:54:59 +0000358 OwningPtr<Binary> obj;
Michael J. Spencera740e192011-12-13 23:17:29 +0000359 if (error(object::createBinary(Buffer.take(), obj), Filename))
Michael J. Spencer20d335a2011-01-20 06:38:57 +0000360 return;
Michael J. Spencer76fb9b02011-06-25 17:54:59 +0000361 if (object::ObjectFile *o = dyn_cast<ObjectFile>(obj.get()))
362 DumpSymbolNamesFromObject(o);
Brian Gaeke82042872003-11-19 21:57:30 +0000363 } else {
Dan Gohman65f57c22009-07-15 16:35:29 +0000364 errs() << ToolName << ": " << Filename << ": "
365 << "unrecognizable file type\n";
Brian Gaeke82042872003-11-19 21:57:30 +0000366 return;
Brian Gaeke972d3d72003-10-16 04:43:15 +0000367 }
368}
369
370int main(int argc, char **argv) {
Chris Lattnercc14d252009-03-06 05:34:10 +0000371 // Print a stack trace if we signal out.
Chris Lattner4d5aad22007-05-06 05:36:18 +0000372 sys::PrintStackTraceOnErrorSignal();
Chris Lattnercc14d252009-03-06 05:34:10 +0000373 PrettyStackTraceProgram X(argc, argv);
Michael J. Spencer4a295d32010-08-31 06:36:46 +0000374
Chris Lattnercc14d252009-03-06 05:34:10 +0000375 llvm_shutdown_obj Y; // Call llvm_shutdown() on exit.
376 cl::ParseCommandLineOptions(argc, argv, "llvm symbol table dumper\n");
Chris Lattnerf73b4ca2004-02-19 20:32:12 +0000377
Michael J. Spencera740e192011-12-13 23:17:29 +0000378 // llvm-nm only reads binary files.
379 if (error(sys::Program::ChangeStdinToBinary()))
380 return 1;
381
Chris Lattner4d5aad22007-05-06 05:36:18 +0000382 ToolName = argv[0];
383 if (BSDFormat) OutputFormat = bsd;
384 if (POSIXFormat) OutputFormat = posix;
Chris Lattnerfc046d52003-10-16 18:45:23 +0000385
Michael J. Spencer20d335a2011-01-20 06:38:57 +0000386 // The relative order of these is important. If you pass --size-sort it should
387 // only print out the size. However, if you pass -S --size-sort, it should
388 // print out both the size and address.
389 if (SizeSort && !PrintSize) PrintAddress = false;
390 if (OutputFormat == sysv || SizeSort) PrintSize = true;
391
Chris Lattner4d5aad22007-05-06 05:36:18 +0000392 switch (InputFilenames.size()) {
393 case 0: InputFilenames.push_back("-");
394 case 1: break;
395 default: MultipleFiles = true;
Chris Lattnerfc046d52003-10-16 18:45:23 +0000396 }
Chris Lattner4d5aad22007-05-06 05:36:18 +0000397
398 std::for_each(InputFilenames.begin(), InputFilenames.end(),
399 DumpSymbolNamesFromFile);
400 return 0;
Brian Gaeke972d3d72003-10-16 04:43:15 +0000401}