mirror of
https://github.com/plasma-umass/coz.git
synced 2024-09-11 04:55:25 +03:00
Adjust file base address with offset from /proc/self/maps
This commit is contained in:
parent
ccaf581a27
commit
e71b89b024
@ -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 this is an executable mapping of an absolute path, include it
|
||||||
if(perms[2] == 'x' && path[0] == '/') {
|
if(perms[2] == 'x' && path[0] == '/') {
|
||||||
result[path] = base;
|
result[path] = base - offset;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user