MCPcopy Create free account
hub / github.com/async-profiler/async-profiler / isMainExecutable

Function isMainExecutable

src/symbols_linux.cpp:82–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80static const char* _ld_base = (const char*)getauxval(AT_BASE);
81
82static bool isMainExecutable(const char* image_base, const void* map_end) {
83 return _main_phdr != NULL && _main_phdr >= image_base && _main_phdr < map_end;
84}
85
86static bool isLoader(const char* image_base) {
87 return _ld_base == image_base;

Callers 1

UnloadProtectionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected