Commit 3c5fefc8 authored by junan's avatar junan Committed by Jonathan Corbet
Browse files

doc: kgdb: Add description about rodata=off kernel parameter



STRICT_KERNEL_RWX can not be turned off throught menuconfig on some
architectures, pass "rodata=off" to the kernel in this case.

Tested with qemu on arm64.

Signed-off-by: default avatarjunan <junan76@163.com>
Suggested-by: default avatarWill Deacon <will@kernel.org>
Reviewed-by: default avatarDaniel Thompson (RISCstar) <danielt@kernel.org>
Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
Message-ID: <20260116050410.772340-2-junan76@163.com>
parent a66437c2
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -380,6 +380,13 @@ virtual address where the kernel image is mapped and confuses
gdb which resolves addresses of kernel symbols from the symbol table
of vmlinux.

Kernel parameter: ``rodata``
----------------------------

``CONFIG_STRICT_KERNEL_RWX`` is turned on by default and is not
visible to menuconfig on some architectures (arm64 for example),
you can pass ``rodata=off`` to the kernel in this case.

Using kdb
=========