Skip to content

Commit 3c5fefc

Browse files
junan76Jonathan Corbet
authored andcommitted
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: junan <junan76@163.com> Suggested-by: Will Deacon <will@kernel.org> Reviewed-by: Daniel Thompson (RISCstar) <danielt@kernel.org> Signed-off-by: Jonathan Corbet <corbet@lwn.net> Message-ID: <20260116050410.772340-2-junan76@163.com>
1 parent a66437c commit 3c5fefc

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Documentation/process/debugging/kgdb.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,13 @@ virtual address where the kernel image is mapped and confuses
380380
gdb which resolves addresses of kernel symbols from the symbol table
381381
of vmlinux.
382382

383+
Kernel parameter: ``rodata``
384+
----------------------------
385+
386+
``CONFIG_STRICT_KERNEL_RWX`` is turned on by default and is not
387+
visible to menuconfig on some architectures (arm64 for example),
388+
you can pass ``rodata=off`` to the kernel in this case.
389+
383390
Using kdb
384391
=========
385392

0 commit comments

Comments
 (0)