From e71b89b024023af4fdeec368080d5640b75fbb86 Mon Sep 17 00:00:00 2001 From: Charlie Curtsinger Date: Tue, 8 Oct 2019 09:04:24 -0500 Subject: [PATCH] Adjust file base address with offset from /proc/self/maps --- libcoz/inspect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcoz/inspect.cpp b/libcoz/inspect.cpp index ec8bb64..3aeaa43 100644 --- a/libcoz/inspect.cpp +++ b/libcoz/inspect.cpp @@ -246,7 +246,7 @@ unordered_map 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; } }