summaryrefslogtreecommitdiffstats
path: root/runtime/sym.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/sym.c')
-rw-r--r--runtime/sym.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/sym.c b/runtime/sym.c
index dd2235cc..856ccbcc 100644
--- a/runtime/sym.c
+++ b/runtime/sym.c
@@ -259,7 +259,8 @@ static int _stp_module_check(void)
/* notes end address */
if (!strcmp(m->name, "kernel")) {
- notes_addr = m->build_id_offset;
+ notes_addr = _stp_module_relocate("kernel",
+ "_stext", m->build_id_offset);
base_addr = _stp_module_relocate("kernel",
"_stext", 0);
} else {