| 477 | }; |
| 478 | |
| 479 | uintptr_t resolve_symbol(const esp_elfsym* source, const char* symbolName) { |
| 480 | const esp_elfsym* symbol_iterator = source; |
| 481 | while (symbol_iterator->name != nullptr) { |
| 482 | if (strcmp(symbol_iterator->name, symbolName) == 0) { |
| 483 | return reinterpret_cast<uintptr_t>(symbol_iterator->sym); |
| 484 | } |
| 485 | symbol_iterator++; |
| 486 | } |
| 487 | return 0; |
| 488 | } |
| 489 | |
| 490 | uintptr_t tt_symbol_resolver(const char* symbolName) { |
| 491 | static const std::vector all_symbols = { |
no outgoing calls
no test coverage detected