Skip to content

Commit

Permalink
Adjust file base address with offset from /proc/self/maps
Browse files Browse the repository at this point in the history
  • Loading branch information
ccurtsinger committed Oct 8, 2019
1 parent ccaf581 commit e71b89b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libcoz/inspect.cpp
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit e71b89b

Please sign in to comment.