aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIldar Musin <zildermann@gmail.com>2018-11-01 01:19:41 +0100
committeryonghong-song <ys114321@gmail.com>2018-10-31 17:19:41 -0700
commitb998421b18a34d0b47a6bda996c91bad12fa5da0 (patch)
tree409c81e400ce0d75c4678fea2bafd844b70bfa16
parent9410c86d1d0168d7726c6dd05ad6268e1ffe05ab (diff)
downloadbcc-b998421b18a34d0b47a6bda996c91bad12fa5da0.zip
bcc-b998421b18a34d0b47a6bda996c91bad12fa5da0.tar.gz
bcc-b998421b18a34d0b47a6bda996c91bad12fa5da0.tar.bz2
Fix USDT semaphore address calculation for position independent executables (resolves #1998) (#2023)
Fix USDT semaphore address calculation for position independent executables
-rw-r--r--src/cc/bcc_syms.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cc/bcc_syms.cc b/src/cc/bcc_syms.cc
index a52e3f4..be9781a 100644
--- a/src/cc/bcc_syms.cc
+++ b/src/cc/bcc_syms.cc
@@ -444,7 +444,7 @@ int bcc_resolve_global_addr(int pid, const char *module, const uint64_t address,
mod.start == 0x0)
return -1;
- *global = mod.start + mod.file_offset + address;
+ *global = mod.start - mod.file_offset + address;
return 0;
}