Lines Matching full:section
13 3.1 Livepatch relocation section format
18 6. Symbol table and Elf section access
36 Since apply_relocate_add() requires access to a module's section header
37 table, symbol table, and relocation section indices, Elf information is
38 preserved for livepatch modules (see section 5). Livepatch manages its own
59 relas reference are special livepatch symbols (see section 2 and 3). The
94 relocation section(s) to the driver once it loads.
99 between a livepatch relocation section and the target section (usually the
100 text section of a function) to which the relocation(s) apply. It is
105 Since Elf information is preserved for livepatch modules (see Section 5), a
106 livepatch relocation section can be applied simply by passing in the
107 appropriate section index to apply_relocate_add(), which then uses it to
108 access the relocation section and apply the relocations.
110 Every symbol referenced by a rela in a livepatch relocation section is a
112 apply_relocate_add(). See Section 3 for more information.
114 3.1 Livepatch relocation section format
118 section flag. See include/uapi/linux/elf.h for the definition. The module
124 The name of a livepatch relocation section must conform to the following
133 The relocation section name is prefixed with the string ".klp.rela."
137 which the relocation section belongs follows immediately after the prefix.
140 The actual name of the section to which this relocation section applies.
145 **Livepatch relocation section names:**
157 Section Headers:
181 …Relocation section '.klp.rela.btrfs.text.btrfs_feature_attr_show' at offset 0x2ba0 contains 4 entr…
207 any livepatch relocation section, all livepatch symbols referenced by that
208 section must be resolved before livepatch can call apply_relocate_add() for
209 that reloc section.
223 relocation section refer to their respective symbols with their symbol indices,
229 …Relocation section '.klp.rela.btrfs.text.btrfs_feature_attr_show' at offset 0x2ba0 contains 4 entr…
244 Livepatch symbols must have their section index marked as SHN_LIVEPATCH, so
298 Note that the 'Ndx' (Section index) for these symbols is SHN_LIVEPATCH (0xff20).
311 6. Symbol table and Elf section access
315 Since apply_relocate_add() requires access to a module's section headers,
316 symbol table, and relocation section indices, Elf information is preserved for
323 Elf_Shdr *sechdrs; /* Section header table */
324 char *secstrings; /* String table for the section headers */
325 unsigned int symndx; /* The symbol table section index */