MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / tt_symbol_resolver

Function tt_symbol_resolver

TactilityC/Source/tt_init.cpp:490–517  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

488}
489
490uintptr_t tt_symbol_resolver(const char* symbolName) {
491 static const std::vector all_symbols = {
492 main_symbols,
493 gcc_soft_float_symbols,
494 stl_symbols,
495 cplusplus_symbols,
496 pthread_symbols,
497 freertos_symbols,
498 string_symbols,
499 esp_event_symbols,
500 esp_http_client_symbols,
501 mbedtls_symbols,
502 };
503
504 for (const auto* symbols : all_symbols) {
505 const uintptr_t address = resolve_symbol(symbols, symbolName);
506 if (address != 0) {
507 return address;
508 }
509 }
510
511 uintptr_t symbol_address;
512 if (module_resolve_symbol_global(symbolName, &symbol_address)) {
513 return symbol_address;
514 }
515
516 return 0;
517}
518
519void tt_init_tactility_c() {
520 elf_set_symbol_resolver(tt_symbol_resolver);

Callers

nothing calls this directly

Calls 2

resolve_symbolFunction · 0.85

Tested by

no test coverage detected