summaryrefslogtreecommitdiffstats
path: root/runtime/sym.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/sym.c')
-rw-r--r--runtime/sym.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/sym.c b/runtime/sym.c
index dcdbaf69..b594d9c2 100644
--- a/runtime/sym.c
+++ b/runtime/sym.c
@@ -98,7 +98,7 @@ static const char *_stp_kallsyms_lookup(unsigned long addr, unsigned long *symbo
unsigned long this_section_addr = _stp_modules[midx]->sections[secidx].addr;
unsigned long this_section_offset;
if (addr < this_section_addr) continue;
- this_section_offset = this_section_addr - addr;
+ this_section_offset = addr - this_section_addr;
if (this_section_offset < closest_section_offset)
{
closest_section_offset = this_section_offset;