public LinkedLibrary add(LibraryFile library) { LinkedLibrary result = new LinkedLibrary(); result.linker = this; result.file = library; result.symbols = new LinkedSymbol[library.nsymbols]; for (uint i = 0; i < library.nsymbols; i++) { result.symbols[i] = new LinkedSymbol(); result.symbols[i].library = result; result.symbols[i].index = i; } libraries.Add(result); for (uint i = 0; i < library.nsections; i++) { if (sections.ContainsKey(library.sectionName(i))) { LinkedSection s = null; sections.TryGetValue(library.sectionName(i), out s); // WTF? Why doesn't "Get"/"GetValue" work? result.add(s.add(result, i)); } } return(result); }
public LinkerException(LibraryFile library, string message, Exception inner) : base(message, inner) { this.library = library; }