diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2022-06-15 06:33:03 +0900 |
---|---|---|
committer | Luis Chamberlain <mcgrof@kernel.org> | 2022-07-01 14:50:01 -0700 |
commit | 2cc39179acbbe524127f0427cee92b629db4d64b (patch) | |
tree | 742545d6ce30a2a26b2bd03cea23daf1f6e83fff /Documentation/livepatch | |
parent | f963ef123900ac534aeb6141642e5351989ac14c (diff) | |
download | lwn-2cc39179acbbe524127f0427cee92b629db4d64b.tar.gz lwn-2cc39179acbbe524127f0427cee92b629db4d64b.zip |
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')
-rw-r--r-- | Documentation/livepatch/module-elf-format.rst | 10 |
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::: |