summaryrefslogtreecommitdiffstats
path: root/runtime/transport/symbols.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/transport/symbols.c')
-rw-r--r--runtime/transport/symbols.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/runtime/transport/symbols.c b/runtime/transport/symbols.c
index 4bdd0904..faba0986 100644
--- a/runtime/transport/symbols.c
+++ b/runtime/transport/symbols.c
@@ -51,8 +51,16 @@ static void _stp_do_relocation(const char __user *buf, size_t count)
if (strcmp (_stp_modules[mi]->name, msg.module))
continue;
+ /* update note section to represent loaded */
+ if (_stp_modules[mi]->notes_sect == 0)
+ _stp_modules[mi]->notes_sect = 1;
for (si=0; si<_stp_modules[mi]->num_sections; si++)
{
+ if (!strcmp (".note.gnu.build-id", msg.reloc)) {
+ _stp_modules[mi]->notes_sect = msg.address;
+ continue;
+ }
+
if (strcmp (_stp_modules[mi]->sections[si].name, msg.reloc))
continue;
@@ -134,7 +142,8 @@ static int _stp_section_is_interesting(const char *name)
{
int ret = 1;
if (!strncmp("__", name, 2)
- || !strncmp(".note", name, 5)
+ || (!strncmp(".note", name, 5)
+ && strncmp(".note.gnu.build-id", name, 18))
|| !strncmp(".gnu", name, 4)
|| !strncmp(".mod", name, 4))
ret = 0;