| 80 | static const char* _ld_base = (const char*)getauxval(AT_BASE); |
| 81 | |
| 82 | static 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 | |
| 86 | static bool isLoader(const char* image_base) { |
| 87 | return _ld_base == image_base; |