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

Sascha Hauer s.hauer at pengutronix.de
Mon Sep 28 04:30:47 EDT 2020


On Tue, Sep 22, 2020 at 06:17:22PM +0200, Michael Grzeschik wrote:
> 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.

Added a separate patch fixing it.

Sascha


-- 
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 |



More information about the barebox mailing list