File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -217,16 +217,19 @@ livepatch relocation section refer to their respective symbols with their symbol
217
217
indices, and the original symbol indices (and thus the symtab ordering) must be
218
218
preserved in order for apply_relocate_add() to find the right symbol.
219
219
220
- For example, take this particular rela from a livepatch module:::
220
+ For example, take this particular rela from a livepatch module::
221
221
222
222
Relocation section '.klp.rela.btrfs.text.btrfs_feature_attr_show' at offset 0x2ba0 contains 4 entries:
223
223
Offset Info Type Symbol's Value Symbol's Name + Addend
224
224
000000000000001f 0000005e00000002 R_X86_64_PC32 0000000000000000 .klp.sym.vmlinux.printk,0 - 4
225
225
226
- This rela refers to the symbol '.klp.sym.vmlinux.printk,0', and the symbol index is encoded
227
- in 'Info'. Here its symbol index is 0x5e, which is 94 in decimal, which refers to the
228
- symbol index 94.
229
- And in this patch module's corresponding symbol table, symbol index 94 refers to that very symbol:
226
+ This rela refers to the symbol '.klp.sym.vmlinux.printk,0', and the symbol
227
+ index is encoded in 'Info'. Here its symbol index is 0x5e, which is 94 in
228
+ decimal, which refers to the symbol index 94.
229
+
230
+ And in this patch module's corresponding symbol table, symbol index 94 refers
231
+ to that very symbol::
232
+
230
233
[ snip ]
231
234
94: 0000000000000000 0 NOTYPE GLOBAL DEFAULT OS [0xff20] .klp.sym.vmlinux.printk,0
232
235
[ snip ]
You can’t perform that action at this time.
0 commit comments