[PATCH 3/9] Kallsyms: Also resolve global variables

Sascha Hauer s.hauer at pengutronix.de
Fri Sep 18 04:45:26 EDT 2020


Increase the area used for resolving symbols so that global variables
can also be resolved to names.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 common/kallsyms.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/common/kallsyms.c b/common/kallsyms.c
index e15dec5dfc..2c16ab2884 100644
--- a/common/kallsyms.c
+++ b/common/kallsyms.c
@@ -15,8 +15,8 @@ extern const unsigned long kallsyms_markers[] __attribute__((weak));
 
 static inline int is_kernel_text(unsigned long addr)
 {
-	if ((addr >= (unsigned long)_stext && addr <= (unsigned long)_etext))
-		return 1;
+        if (addr >= (unsigned long)_stext && addr <= (unsigned long)_end)
+                return 1;
 	return 0;
 }
 
-- 
2.28.0




More information about the barebox mailing list