Lines Matching refs:symbols

345 bool ComputeSizeAndRVA(struct SymbolInfo *symbols) {  in ComputeSizeAndRVA()  argument
347 &(symbols->source_file_info); in ComputeSizeAndRVA()
348 SymbolMap *symbol_entries = &(symbols->symbol_entries); in ComputeSizeAndRVA()
398 struct SymbolInfo *symbols) { in LoadAllSymbols() argument
426 symbols->source_file_info.push_back(source_file_info); in LoadAllSymbols()
431 return ComputeSizeAndRVA(symbols); in LoadAllSymbols()
434 bool LoadSymbols(Elf *elf, GElf_Ehdr *elf_header, struct SymbolInfo *symbols, in LoadSymbols() argument
473 symbols->symbol_entries.insert(make_pair(name, symbol_entry)); in LoadSymbols()
479 return LoadAllSymbols(&stab_section, &stabstr_section, base, symbols); in LoadSymbols()
511 bool WriteSourceFileInfo(int fd, const struct SymbolInfo &symbols) { in WriteSourceFileInfo() argument
512 for (size_t i = 0; i < symbols.source_file_info.size(); ++i) { in WriteSourceFileInfo()
513 if (symbols.source_file_info[i].source_id != -1) { in WriteSourceFileInfo()
514 const char *name = symbols.source_file_info[i].name; in WriteSourceFileInfo()
516 symbols.source_file_info[i].source_id, name)) in WriteSourceFileInfo()
557 bool WriteFunctionInfo(int fd, const struct SymbolInfo &symbols) { in WriteFunctionInfo() argument
558 for (size_t i = 0; i < symbols.source_file_info.size(); ++i) { in WriteFunctionInfo()
559 const struct SourceFileInfo &file_info = symbols.source_file_info[i]; in WriteFunctionInfo()
569 bool DumpStabSymbols(int fd, const struct SymbolInfo &symbols) { in DumpStabSymbols() argument
570 return WriteSourceFileInfo(fd, symbols) && in DumpStabSymbols()
571 WriteFunctionInfo(fd, symbols); in DumpStabSymbols()
670 struct SymbolInfo symbols; in WriteSymbolFile() local
671 if (!LoadSymbols(elf, &elf_header, &symbols, obj_base)) in WriteSymbolFile()
675 DumpStabSymbols(sym_fd, symbols)) in WriteSymbolFile()