xtensa: use correct symbol for the end of .rodata
authorMax Filippov <jcmvbkbc@gmail.com>
Sat, 28 Sep 2019 00:30:05 +0000 (17:30 -0700)
committerMax Filippov <jcmvbkbc@gmail.com>
Mon, 21 Oct 2019 06:48:29 +0000 (23:48 -0700)
Use correct symbol for the end of .rodata section when dumping virtual
memory layout. This fixes odd rodata size with XIP kernel.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/mm/init.c

index d898ed6..19c625e 100644 (file)
@@ -193,8 +193,8 @@ void __init mem_init(void)
                ((max_low_pfn - min_low_pfn) * PAGE_SIZE) >> 20,
                (unsigned long)_text, (unsigned long)_etext,
                (unsigned long)(_etext - _text) >> 10,
-               (unsigned long)__start_rodata, (unsigned long)_sdata,
-               (unsigned long)(_sdata - __start_rodata) >> 10,
+               (unsigned long)__start_rodata, (unsigned long)__end_rodata,
+               (unsigned long)(__end_rodata - __start_rodata) >> 10,
                (unsigned long)_sdata, (unsigned long)_edata,
                (unsigned long)(_edata - _sdata) >> 10,
                (unsigned long)__init_begin, (unsigned long)__init_end,