diff options
author | Ildar Musin <zildermann@gmail.com> | 2018-11-01 01:19:41 +0100 |
---|---|---|
committer | yonghong-song <ys114321@gmail.com> | 2018-10-31 17:19:41 -0700 |
commit | b998421b18a34d0b47a6bda996c91bad12fa5da0 (patch) | |
tree | 409c81e400ce0d75c4678fea2bafd844b70bfa16 | |
parent | 9410c86d1d0168d7726c6dd05ad6268e1ffe05ab (diff) | |
download | bcc-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.cc | 2 |
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; } |