• Home
  • Raw
  • Download

Lines Matching refs:symbol

15       4.1 A livepatch module's symbol table
16 4.2 Livepatch symbol format
36 table, symbol table, and relocation section indices, Elf information is
53 symbols while taking into account its scope and what module the symbol
109 Every symbol referenced by a rela in a livepatch relocation section is a
110 livepatch symbol. These must be resolved before livepatch can call
191 Every symbol referenced by a relocation is a livepatch symbol.
200 resolves exported syms, and not every symbol referenced by the new patched
202 also in cases where we cannot immediately know the address of a symbol when
212 in their symbol tables, and the symbol table is made accessible through
215 4.1 A livepatch module's symbol table
217 Normally, a stripped down copy of a module's symbol table (containing only
219 in kernel/module.c). For livepatch modules, the symbol table copied into memory
220 on module load must be exactly the same as the symbol table produced when the
222 relocation section refer to their respective symbols with their symbol indices,
223 and the original symbol indices (and thus the symtab ordering) must be
224 preserved in order for apply_relocate_add() to find the right symbol.
232 This rela refers to the symbol '.klp.sym.vmlinux.printk,0', and the symbol index is encoded
233 in 'Info'. Here its symbol index is 0x5e, which is 94 in decimal, which refers to the
234 symbol index 94.
235 And in this patch module's corresponding symbol table, symbol index 94 refers to that very symbol:
240 4.2 Livepatch symbol format
247 Livepatch symbol names must conform to the following format::
255 The symbol name is prefixed with the string ".klp.sym."
259 which the symbol belongs follows immediately after the prefix.
262 The actual name of the symbol.
265 The position of the symbol in the object (as according to kallsyms)
267 object. The symbol position is expressed numerically (0, 1, 2...).
268 The symbol position of a unique symbol is 0.
273 **Livepatch symbol names:**
302 A livepatch module's symbol table is accessible through module->symtab.
305 symbol table, and relocation section indices, Elf information is preserved for
314 unsigned int symndx; /* The symbol table section index */