Lines Matching refs:symbols
139 // Symbols information.
344 // Compute size and rva information based on symbols loaded from stab section.
345 bool ComputeSizeAndRVA(struct SymbolInfo *symbols) {
347 &(symbols->source_file_info);
348 SymbolMap *symbol_entries = &(symbols->symbol_entries);
398 struct SymbolInfo *symbols) {
409 // First pass, load all symbols from the object file.
426 symbols->source_file_info.push_back(source_file_info);
431 return ComputeSizeAndRVA(symbols);
434 bool LoadSymbols(Elf *elf, GElf_Ehdr *elf_header, struct SymbolInfo *symbols,
473 symbols->symbol_entries.insert(make_pair(name, symbol_entry));
478 // Load symbols.
479 return LoadAllSymbols(&stab_section, &stabstr_section, base, symbols);
511 bool WriteSourceFileInfo(int fd, const struct SymbolInfo &symbols) {
512 for (size_t i = 0; i < symbols.source_file_info.size(); ++i) {
513 if (symbols.source_file_info[i].source_id != -1) {
514 symbols.source_file_info[i].name;
516 symbols.source_file_info[i].source_id, name))
557 bool WriteFunctionInfo(int fd, const struct SymbolInfo &symbols) {
558 for (size_t i = 0; i < symbols.source_file_info.size(); ++i) {
559 const struct SourceFileInfo &file_info = symbols.source_file_info[i];
569 bool DumpStabSymbols(int fd, const struct SymbolInfo &symbols) {
570 return WriteSourceFileInfo(fd, symbols) &&
571 WriteFunctionInfo(fd, symbols);
670 struct SymbolInfo symbols;
671 if (!LoadSymbols(elf, &elf_header, &symbols, obj_base))
675 DumpStabSymbols(sym_fd, symbols))