/haiku/headers/private/system/ |
H A D | symbol_versioning.h | 12 # define DEFINE_LIBROOT_KERNEL_SYMBOL_VERSION(function, symbol, version) \ 13 B_DEFINE_SYMBOL_VERSION(function, symbol "KERNEL_" version) 15 # define DEFINE_LIBROOT_KERNEL_SYMBOL_VERSION(function, symbol, version) \ 16 B_DEFINE_SYMBOL_VERSION(function, symbol "LIBROOT_" version)
|
/haiku/src/system/libroot/stubbed/ |
H A D | generate_stubs.py | 17 (address, type, symbol) = line.split() 25 if '.' in symbol: 29 if '@' in symbol: 30 versionedDataSymbolsByName[symbol] = address 33 dataSymbolsByAddress[address] = symbol 34 dataSymbols.append(symbol) 36 if '@' in symbol: 37 versionedFunctionSymbolsByName[symbol] = address 40 functionSymbolsByAddress[address] = symbol 41 functionSymbols.append(symbol) [all...] |
/haiku/src/system/libroot/posix/glibc/include/ |
H A D | shlib-compat.h | 1 /* Macros for managing ABI-compatibility definitions using ELF symbol versions. 60 This will define the symbol `foo' with the appropriate default version, 64 # define versioned_symbol(lib, local, symbol, version) \ 65 versioned_symbol_1 (local, symbol, VERSION_##lib##_##version) 66 # define versioned_symbol_1(local, symbol, name) \ 67 default_symbol_version (local, symbol, name) 69 # define compat_symbol(lib, local, symbol, version) \ 70 compat_symbol_1 (local, symbol, VERSION_##lib##_##version) 71 # define compat_symbol_1(local, symbol, name) \ 72 symbol_version (local, symbol, nam [all...] |
H A D | libc-symbols.h | 2 and for using symbol sets and linker warnings with GNU ld. 35 and for symbol set and warning messages extensions in a.out and ELF. 45 with other packages also tests this symbol to see if it is being 110 /* Declare SYMBOL as weak undefined symbol (resolved to 0 if not defined). */ 111 # define weak_extern(symbol) _weak_extern (weak symbol) 117 # define weak_extern(symbol) /* Nothing. */ 167 # define weak_extern(symbol) \ 168 .weakext C_SYMBOL_NAME (symbol) 184 # define weak_extern(symbol) \ [all...] |
/haiku/src/kits/debugger/debug_info/ |
H A D | SpecificImageDebugInfo.cpp | 29 for (int32 i = 0; SymbolInfo* symbol = symbols.ItemAt(i); i++) { 30 if (symbol->Type() != B_SYMBOL_TYPE_TEXT) 34 info, symbol->Address(), symbol->Size(), symbol->Name(), 35 Demangler::Demangle(symbol->Name()));
|
/haiku/src/system/runtime_loader/ |
H A D | elf_symbol_lookup.cpp | 67 patch_defined_symbol(image_t* image, const char* name, void** symbol, argument 71 while (patcher != NULL && *symbol != 0) { 74 symbol, type); 82 image_t** foundInImage, void** symbol, int32* type) 85 patch_defined_symbol(*foundInImage, name, symbol, type); 90 symbol, type); 97 is_symbol_visible(elf_sym* symbol) argument 99 if (symbol->Bind() == STB_GLOBAL) 101 if (symbol->Bind() == STB_WEAK) 120 elf_sym* symbol local 81 patch_undefined_symbol(image_t* rootImage, image_t* image, const char* name, image_t** foundInImage, void** symbol, int32* type) argument 232 elf_sym* symbol = find_symbol(image, lookupInfo); local 264 elf_sym* symbol = find_symbol(image, lookupInfo); local 326 elf_sym* symbol = find_symbol(image, lookupInfo); local [all...] |
H A D | elf_haiku_version.cpp | 217 elf_sym* symbol = find_symbol(image, local 220 if (symbol != NULL && symbol->st_shndx != SHN_UNDEF 221 && symbol->st_value > 0 222 && symbol->st_size >= sizeof(uint32)) { 224 = *(uint32*)(symbol->st_value + image->regions[0].delta); 229 symbol = find_symbol(image, 232 if (symbol != NULL && symbol->st_shndx != SHN_UNDEF 233 && symbol [all...] |
/haiku/src/system/libroot/add-ons/icu/ |
H A D | ICULocaleconvData.cpp | 27 char* destination, FormatSymbol symbol, const char* defaultValue) 31 UnicodeString symbolString = formatSymbols->getSymbol(symbol); 26 _SetLocaleconvEntry(const DecimalFormatSymbols* formatSymbols, char* destination, FormatSymbol symbol, const char* defaultValue) argument
|
/haiku/src/bin/debug/profile/ |
H A D | SharedImage.cpp | 41 // we need a temporary symbol lookup context 46 fprintf(stderr, "%s: Failed to create symbol lookup context " 52 // TODO: Creating a symbol lookup just for loading the symbols of a single 55 // create a symbol iterator 61 "Failed to init symbol iterator for image %" B_PRId32 ": %s\n", 81 // create a symbol iterator 85 fprintf(stderr, "Failed to init symbol iterator for \"%s\": %s\n", 116 const Symbol* symbol = fSymbols[lower]; local 117 if (address >= symbol->base && address < symbol 143 Symbol* symbol = new(std::nothrow) Symbol(this, local [all...] |
H A D | BasicProfileResult.cpp | 23 Symbol* symbol; member in struct:HitSymbol 164 hitSymbol.symbol = symbols[i]; 220 const Symbol* symbol = hitSymbol.symbol; local 223 const char* symbolName = __cxxabiv1::__cxa_demangle(symbol->Name(), 226 symbolName = symbol->Name(); 228 const char* symbolName = symbol->Name(); 272 // Sort the samples. This way hits of the same symbol are 274 // same symbol twice. Same for images. 286 int32 symbol local [all...] |
/haiku/headers/private/libroot/locale/ |
H A D | ICULocaleconvData.h | 30 char* destination, FormatSymbol symbol,
|
/haiku/src/add-ons/kernel/debugger/demangle/ |
H A D | demangle.h | 20 status_t get_next_argument_gcc2(uint32* _cookie, const char* symbol, 28 status_t get_next_argument_gcc3(uint32* _cookie, const char* symbol,
|
H A D | demangle.cpp | 16 looks_like_gcc3_symbol(const char* symbol) argument 18 return strncmp(symbol, "_Z", 2) == 0; 26 // try the gcc3 demangler, if it looks like a gcc3 symbol 45 // try the gcc3 demangler, if it looks like a gcc3 symbol
|
/haiku/src/tools/elfsymbolpatcher/ |
H A D | ElfImage.cpp | 56 // get a symbol iterator 157 // get the symbol 158 ElfSymbol symbol; local 160 && relocation.GetSymbol(&symbol) == B_OK 161 && symbol.GetName()) { 163 if ((symbol.GetBinding() == STB_GLOBAL 164 || symbol.GetBinding() == STB_WEAK) 165 && (symbol.GetTargetSectionIndex() == SHN_UNDEF 166 || symbol.GetTargetSectionIndex() 168 && !strcmp(symbol [all...] |
H A D | ElfFile.cpp | 269 Elf_Sym* symbol = fSymbol; local 270 if (!symbol && fSection && fSection->GetData()) { 276 symbol = (Elf_Sym*)(fSection->GetData() + fIndex * symbolSize); 278 return symbol; 286 if (const Elf_Sym* symbol = GetSymbolStruct()) { 290 if (data && symbol->st_name < size) 291 name = data + symbol->st_name; 301 if (const Elf_Sym* symbol = GetSymbolStruct()) 302 binding = ELF_ST_BIND(symbol->st_info); 311 if (const Elf_Sym* symbol 415 GetSymbol(ElfSymbol* symbol) argument [all...] |
/haiku/src/system/kernel/ |
H A D | elf.cpp | 136 elf_sym* symbol = elf_find_symbol(image, local 138 if (symbol != NULL && symbol->st_shndx != SHN_UNDEF 139 && symbol->st_value > 0 140 && symbol->Type() == STT_OBJECT 141 && symbol->st_size >= sizeof(uint32)) { 142 addr_t symbolAddress = symbol->st_value + image->text_region.delta; 152 symbol = elf_find_symbol(image, 154 if (symbol != NULL && symbol 207 const char *symbol, *imageName; local 321 get_symbol_type_string(elf_sym *symbol) argument 337 get_symbol_bind_string(elf_sym *symbol) argument 375 elf_sym *symbol = &image->debug_symbols[i]; local 390 elf_sym *symbol = &image->syms[j]; local 477 elf_sym *symbol = &image->debug_symbols[i]; local 495 elf_sym *symbol = &image->syms[j]; local 618 elf_sym* symbol = &image->syms[i]; local 1001 elf_resolve_symbol(struct elf_image_info *image, elf_sym *symbol, struct elf_image_info *sharedImage, elf_addr *_symbolAddress) argument 1440 elf_sym symbol; local 1581 elf_sym *symbol; local 1656 elf_sym *symbol = &image->debug_symbols[i]; local 1684 elf_sym *symbol = &image->syms[j]; local 1784 elf_sym *symbol = &image->debug_symbols[i]; local 1795 elf_sym *symbol = &image->syms[j]; local 2585 elf_sym& symbol = symbolTable[symbolCount - 1]; local [all...] |
/haiku/src/bin/debug/ltrace/ |
H A D | ltrace_stub.cpp | 145 const char* name, image_t** foundInImage, void** symbol, int32* type) 148 cookie, rootImage, image, name, *foundInImage, *symbol, *type); 155 PatchEntry* entry = sOriginalTable.Lookup(*symbol); 158 *symbol = entry->patchedFunction; 162 entry = PatchEntry::Create(name, *symbol); 172 *symbol = entry->patchedFunction; 197 TRACE_PRINTF(" failed to install symbol patcher\n"); 144 symbol_patcher(void* cookie, image_t* rootImage, image_t* image, const char* name, image_t** foundInImage, void** symbol, int32* type) argument
|
/haiku/src/add-ons/kernel/debugger/disasm/ |
H A D | disasm.cpp | 63 const char *symbol; local 68 error = elf_debug_lookup_symbol_address(pc, &baseAddress, &symbol, 72 debug_get_debugged_thread()->team, pc, &baseAddress, &symbol,
|
/haiku/src/system/kernel/arch/riscv64/ |
H A D | arch_elf.cpp | 71 // Resolve the symbol, if any. 73 Elf64_Sym* symbol = SYMBOL(image, symIndex); local 77 status = boot_elf_resolve_symbol(image, symbol, 80 status = elf_resolve_symbol(image, symbol, resolveImage,
|
/haiku/src/kits/debug/ |
H A D | Image.cpp | 95 const elf_sym* symbol = &fSymbolTable[i]; local 97 if (symbol->st_value == 0 98 || symbol->st_size >= (size_t)fInfo.text_size + fInfo.data_size) { 102 addr_t symbolAddress = symbol->st_value + fLoadDelta; 107 if (symbolDelta >= 0 && symbolDelta < symbol->st_size) 112 symbolFound = symbol; 113 symbolName = fStringTable + symbol->st_name; 144 const elf_sym* symbol = &fSymbolTable[iterator]; local 146 if ((symbol->Type() != STT_FUNC && symbol [all...] |
H A D | SymbolLookup.cpp | 327 TRACE(("SymbolLookup::LookupSymbolAddress(): done: symbol: %p, image name: " 333 // symbol not found -- return the image itself 602 // search the image for the symbol 612 const elf_sym *symbol = &fSymbolLookup->Read(fImage->syms[i]); local 614 // The symbol table contains not only symbols referring to functions 619 // symbol defined elsewhere -- couldn't verify that in the specs 621 if ((symbol->Type() != STT_FUNC && symbol->Type() != STT_OBJECT) 622 || symbol->st_value == 0 623 || symbol 679 const elf_sym* symbol local [all...] |
/haiku/src/kits/debugger/elf/ |
H A D | ElfSymbolLookup.cpp | 199 // Read the number of symbols in the symbol table from the hash 219 // read the symbol structure 220 ElfSym symbol; local 221 ssize_t bytesRead = fSource->Read(symbolAddress, &symbol, 222 sizeof(symbol)); 225 if ((size_t)bytesRead != sizeof(symbol)) 230 if ((symbol.Type() != STT_FUNC && symbol.Type() != STT_OBJECT) 231 || symbol.st_value == 0) { 236 target_addr_t address = Get(symbol [all...] |
/haiku/src/system/kernel/arch/x86/ |
H A D | arch_elf.cpp | 47 "R_386_32", /* add symbol value */ 48 "R_386_PC32", /* add PC relative symbol value */ 55 "R_386_GOTOFF", /* add GOT relative symbol address */ 92 Elf32_Sym *symbol; local 95 symbol = SYMBOL(image, ELF32_R_SYM(rel[i].r_info)); 98 status = boot_elf_resolve_symbol(image, symbol, &S); 100 status = elf_resolve_symbol(image, symbol, resolveImage, &S); 105 TRACE(("S 0x%08" B_PRIx32 " (%s)\n", S, SYMNAME(image, symbol))); 233 // Resolve the symbol, if any. 235 Elf64_Sym* symbol local [all...] |
/haiku/src/system/kernel/arch/arm64/ |
H A D | arch_elf.cpp | 69 // Resolve the symbol, if any. 71 Elf64_Sym* symbol = SYMBOL(image, symIndex); local 75 status = boot_elf_resolve_symbol(image, symbol, &symAddr); 77 status = elf_resolve_symbol(image, symbol, resolveImage, &symAddr);
|
/haiku/src/system/kernel/arch/sparc/ |
H A D | arch_debug.cpp | 20 arch_debug_contains_call(Thread *thread, const char *symbol, argument
|