aboutsummaryrefslogtreecommitdiff
path: root/Documentation/livepatch/module-elf-format.rst
diff options
context:
space:
mode:
authorLinaro CI <ci_notify@linaro.org>2022-07-14 13:57:19 +0000
committerLinaro CI <ci_notify@linaro.org>2022-07-14 13:57:19 +0000
commitb99ed64cfd9a71c2a6ee309e560602ffe5942bf4 (patch)
tree712a4327d7c6ad993f137dcd9c7228e405c0cef8 /Documentation/livepatch/module-elf-format.rst
parent42bfe6fc95acbfdd552957b8e31e903df97a2204 (diff)
parent61bb243a11a7e5905e8d3688bd31d6c4f91d2ea5 (diff)
Merge remote-tracking branch 'msm8939/tracking-qcomlt-msm8939' into integration-linux-qcomltintegration-linux-qcomlt-20220718-011904-v5.19-rc6-305-gb99ed64cfd9a71
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:::