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

Michael Grzeschik mgr at pengutronix.de
Tue Sep 22 12:17:22 EDT 2020


Hi!

On Fri, Sep 18, 2020 at 10:45:26AM +0200, Sascha Hauer wrote:
>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;

tabs vs spaces.

> 	return 0;
> }
>
>-- 
>2.28.0

mgr

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/barebox/attachments/20200922/76860275/attachment.sig>


More information about the barebox mailing list