commit 260ec209e99489b1eaaabe38206562fe97e56d55
parent 85437d0e17a5baaaef3bde3d34cbbc1449ca7d18
Author: Christos Margiolis <christos@margiolis.net>
Date: Thu, 23 Mar 2023 02:17:23 +0200
ignore non-STT_FUNCs
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/inlinecall.c b/inlinecall.c
@@ -317,6 +317,8 @@ find_caller_func(struct addr_pair addr)
warnx("gelf_getsym(): %s", elf_errmsg(-1));
continue;
}
+ if (GELF_ST_TYPE(sym.st_info) != STT_FUNC)
+ continue;
lo = sym.st_value;
hi = sym.st_value + sym.st_size;
if (addr.lo < lo || addr.hi > hi)