Home | History | Annotate | Download | only in Mach-O

Lines Matching refs:symbol

32 #include "lldb/Symbol/ClangNamespaceDecl.h"
33 #include "lldb/Symbol/DWARFCallFrameInfo.h"
34 #include "lldb/Symbol/ObjectFile.h"
789 Symbol *symbol = symtab->FindSymbolContainingFileAddress(file_addr);
790 if (symbol)
792 if (symbol->ValueIsAddress())
794 SectionSP section_sp (symbol->GetAddress().GetSection());
804 // For ARM we have a bit in the n_desc field of the symbol
806 if (symbol->GetFlags() & MACHO_NLIST_ARM_SYMBOL_IS_THUMB)
851 const SymbolType symbol_type = symbol->GetType();
862 // For ARM we have a bit in the n_desc field of the symbol
864 if (symbol->GetFlags() & MACHO_NLIST_ARM_SYMBOL_IS_THUMB)
1302 case SectionTypeNonLazySymbolPointers: sect_type = eSectionTypeDataPointers; break; // section with only non-lazy symbol pointers
1303 case SectionTypeLazySymbolPointers: sect_type = eSectionTypeDataPointers; break; // section with only lazy symbol pointers
1304 case SectionTypeSymbolStubs: sect_type = eSectionTypeCode; break; // section with only symbol stubs, byte size of stub in the reserved2 field
1426 // Symbol is in section.
1432 // Symbol is in section with zero size, but has the same start
1483 // Watch for the symbol table load command
1583 // always have to load these files from memory. All of the symbol and
1586 // symbol and string table. Reading all of this symbol and string table
1781 Symbol *symbol_ptr = NULL;
1784 Symbol *sym = NULL;
1792 // symbols out of the memory mapped portion of the DSC. The symbol information has all been retained,
1795 // to parse any DSC unmapped symbol information. If we find any, we set a flag that tells the normal
1931 module_sp->ReportWarning ("process shared cache does not match on-disk dyld_shared_cache file, some symbol names will be missing.");
2013 // No symbol should be NULL, even the symbols with no
2017 "error: DSC unmapped local symbol[%u] has invalid string table offset 0x%x in %s, ignoring symbol\n",
2044 // N_GSYM -- global symbol: name,,NO_SECT,type,0
2047 // FIXME: In the .o files, we have a GSYM and a debug symbol for all the ObjC data. They
2048 // have the same address, but we want to ensure that we always find only the real symbol,
2050 // symbol type. This is a temporary hack to make sure the ObjectiveC symbols get treated
2082 // We use the current number of symbols in the symbol table in lieu of
2097 // we already placed with the original symbol, so don't add it if we want a
2098 // minimal symbol table
2105 // N_STSYM -- static symbol: name,,n_sect,type,address
2112 // N_LCSYM -- .lcomm symbol: name,,n_sect,type,address
2119 // We use the current number of symbols in the symbol table in lieu of
2121 // Skip these if we want minimal symbol tables
2128 // so that we can always skip the entire symbol if we need to navigate
2130 // Skip these if we want minimal symbol tables
2180 // We use the current number of symbols in the symbol table in lieu of
2203 // so here we combine it with the first one if we are minimizing the symbol table
2257 // We use the current number of symbols in the symbol table in lieu of
2266 // so that we can always skip the entire symbol if we need to navigate
2317 // We use the current number of symbols in the symbol table in lieu of
2327 // so that we can always skip the entire symbol if we need to navigate
2350 // We use the current number of symbols in the symbol table in lieu of
2364 // so that we can always skip the entire symbol if we need to navigate
2429 case SectionTypeNonLazySymbolPointers: type = eSymbolTypeTrampoline; break; // section with only non-lazy symbol pointers
2430 case SectionTypeLazySymbolPointers: type = eSymbolTypeTrampoline; break; // section with only lazy symbol pointers
2431 case SectionTypeSymbolStubs: type = eSymbolTypeTrampoline; break; // section with only symbol stubs, byte size of stub in the reserved2 field
2562 // the symbol might be a thumb symbol which has an address with bit zero set
2566 // Verify that the function start address is the symbol address (ARM)
2567 // or the symbol address + 1 (thumb)
2614 // can merge the two into just the function symbol to avoid
2615 // duplicate entries in the symbol table
2622 // We just need the flags from the linker symbol, so put these flags
2623 // into the N_FUN flags to avoid duplicate symbols in the symbol table
2634 // can merge the two into just the Static symbol to avoid
2635 // duplicate entries in the symbol table
2642 // We just need the flags from the linker symbol, so put these flags
2643 // into the N_STSYM flags to avoid duplicate symbols in the symbol table
2651 // Combine N_GSYM stab entries with the non stab symbol
2658 // when the global is a common symbol
2661 // We just need the flags from the linker symbol, so put these flags
2662 // into the N_STSYM flags to avoid duplicate symbols in the symbol table
2745 // No symbol should be NULL, even the symbols with no
2749 "error: symbol[%u] has invalid string table offset 0x%x in %s, ignoring symbol\n",
2783 // N_GSYM -- global symbol: name,,NO_SECT,type,0
2786 // FIXME: In the .o files, we have a GSYM and a debug symbol for all the ObjC data. They
2787 // have the same address, but we want to ensure that we always find only the real symbol,
2789 // symbol type. This is a temporary hack to make sure the ObjectiveC symbols get treated
2821 // We use the current number of symbols in the symbol table in lieu of
2836 // we already placed with the original symbol, so don't add it if we want a
2837 // minimal symbol table
2844 // N_STSYM -- static symbol: name,,n_sect,type,address
2851 // N_LCSYM -- .lcomm symbol: name,,n_sect,type,address
2858 // We use the current number of symbols in the symbol table in lieu of
2860 // Skip these if we want minimal symbol tables
2867 // so that we can always skip the entire symbol if we need to navigate
2869 // Skip these if we want minimal symbol tables
2919 // We use the current number of symbols in the symbol table in lieu of
2942 // so here we combine it with the first one if we are minimizing the symbol table
2997 // We use the current number of symbols in the symbol table in lieu of
3006 // so that we can always skip the entire symbol if we need to navigate
3057 // We use the current number of symbols in the symbol table in lieu of
3067 // so that we can always skip the entire symbol if we need to navigate
3090 // We use the current number of symbols in the symbol table in lieu of
3104 // so that we can always skip the entire symbol if we need to navigate
3169 case SectionTypeNonLazySymbolPointers: type = eSymbolTypeTrampoline; break; // section with only non-lazy symbol pointers
3170 case SectionTypeLazySymbolPointers: type = eSymbolTypeTrampoline; break; // section with only lazy symbol pointers
3171 case SectionTypeSymbolStubs: type = eSymbolTypeTrampoline; break; // section with only symbol stubs, byte size of stub in the reserved2 field
3309 // the symbol might be a thumb symbol which has an address with bit zero set
3313 // Verify that the function start address is the symbol address (ARM)
3314 // or the symbol address + 1 (thumb)
3356 // can merge the two into just the function symbol to avoid
3357 // duplicate entries in the symbol table
3364 // We just need the flags from the linker symbol, so put these flags
3365 // into the N_FUN flags to avoid duplicate symbols in the symbol table
3376 // can merge the two into just the Static symbol to avoid
3377 // duplicate entries in the symbol table
3384 // We just need the flags from the linker symbol, so put these flags
3385 // into the N_STSYM flags to avoid duplicate symbols in the symbol table
3393 // Combine N_GSYM stab entries with the non stab symbol
3400 // when the global is a common symbol
3403 // We just need the flags from the linker symbol, so put these flags
3404 // into the N_STSYM flags to avoid duplicate symbols in the symbol table
3434 // STAB N_GSYM entries end up having a symbol type eSymbolTypeGlobal and when the symbol value
3437 // entry and copying the value into the debug symbol's value to save us the hassle in the
3438 // debug symbol parser.
3440 Symbol *global_symbol = NULL;
3582 Symbol *stub_symbol = NULL;
3586 // a current symbol index, so just look this up by index
3591 // We need to lookup a symbol using the original nlist
3592 // symbol index since this index is coming from the
3603 // Change the external symbol into a trampoline that makes sense
3605 // can re-use them so we don't have to make up a synthetic symbol
3614 // Make a synthetic symbol to describe the trampoline stub
3633 log->Warning ("symbol stub referencing symbol table symbol %u that isn't in our minimal symbol table, fix this!!!", stub_sym_id);
3643 // s.Printf ("Symbol table before CalculateSymbolSizes():\n");
3645 // Set symbol byte sizes correctly since mach-o nlist entries don't have sizes
3648 // s.Printf ("Symbol table after CalculateSymbolSizes():\n");
3920 // "start" symbol in the main executable.
3931 m_entry_point_address = context.symbol->GetAddress();
4044 // we could eventually look for the symbol named
4082 // we could eventually look for the symbol named