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 <[email protected]>
---
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 |

Attachment: signature.asc
Description: PGP signature

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

Reply via email to