diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2019-09-28 03:30:05 +0300 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2019-10-21 09:48:29 +0300 |
commit | 123b8db839b3695c8296121b9962d1a195417843 (patch) | |
tree | 51c3078ceea93e706b1b62c73217da24e48bab75 /arch/xtensa/mm | |
parent | 9fab17ca9afe3e21c2268a742103f477316af6ec (diff) | |
download | linux-123b8db839b3695c8296121b9962d1a195417843.tar.xz |
xtensa: use correct symbol for the end of .rodata
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>
Diffstat (limited to 'arch/xtensa/mm')
-rw-r--r-- | arch/xtensa/mm/init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/xtensa/mm/init.c b/arch/xtensa/mm/init.c index d898ed67d890..19c625e6d81f 100644 --- a/arch/xtensa/mm/init.c +++ b/arch/xtensa/mm/init.c @@ -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, |