summaryrefslogtreecommitdiff
path: root/Documentation/livepatch/module-elf-format.rst
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2022-06-15 00:33:03 +0300
committerLuis Chamberlain <mcgrof@kernel.org>2022-07-02 00:50:01 +0300
commit2cc39179acbbe524127f0427cee92b629db4d64b (patch)
tree742545d6ce30a2a26b2bd03cea23daf1f6e83fff /Documentation/livepatch/module-elf-format.rst
parentf963ef123900ac534aeb6141642e5351989ac14c (diff)
downloadlinux-2cc39179acbbe524127f0427cee92b629db4d64b.tar.xz
doc: module: update file references
Adjust documents to the file moves made by commit cfc1d277891e ("module: Move all into module/"). Thanks to Yanteng Si for helping me to update Documentation/translations/zh_CN/core-api/kernel-api.rst Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Acked-by: Yanteng Si <siyanteng@loongson.cn> Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Diffstat (limited to 'Documentation/livepatch/module-elf-format.rst')
-rw-r--r--Documentation/livepatch/module-elf-format.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/Documentation/livepatch/module-elf-format.rst b/Documentation/livepatch/module-elf-format.rst
index dbe9b400e39f..7347638895a0 100644
--- a/Documentation/livepatch/module-elf-format.rst
+++ b/Documentation/livepatch/module-elf-format.rst
@@ -210,11 +210,11 @@ module->symtab.
=====================================
Normally, a stripped down copy of a module's symbol table (containing only
"core" symbols) is made available through module->symtab (See layout_symtab()
-in kernel/module.c). For livepatch modules, the symbol table copied into memory
-on module load must be exactly the same as the symbol table produced when the
-patch module was compiled. This is because the relocations in each livepatch
-relocation section refer to their respective symbols with their symbol indices,
-and the original symbol indices (and thus the symtab ordering) must be
+in kernel/module/kallsyms.c). For livepatch modules, the symbol table copied
+into memory on module load must be exactly the same as the symbol table produced
+when the patch module was compiled. This is because the relocations in each
+livepatch relocation section refer to their respective symbols with their symbol
+indices, and the original symbol indices (and thus the symtab ordering) must be
preserved in order for apply_relocate_add() to find the right symbol.
For example, take this particular rela from a livepatch module:::