Adjust file base address with offset from /proc/self/maps

This commit is contained in:
Charlie Curtsinger 2019-10-08 09:04:24 -05:00
parent ccaf581a27
commit e71b89b024

View File

@ -246,7 +246,7 @@ unordered_map<string, uintptr_t> get_loaded_files() {
// If this is an executable mapping of an absolute path, include it
if(perms[2] == 'x' && path[0] == '/') {
result[path] = base;
result[path] = base - offset;
}
}