Lines Matching +full:os +full:- +full:code +full:- +full:offset

16 Formerly, livepatch required separate architecture-specific code to write
17 relocations. However, arch-specific code to write relocations already
19 code. So, instead of duplicating code and re-implementing what the module
20 loader can already do, livepatch leverages existing code in the module
21 loader to perform the all the arch-specific relocation work. Specifically,
26 of arch-specific code required to port livepatch to a particular
34 selected from OS-specific ranges according to the definitions from glibc.
37 -----------------------------------------------------
39 reference non-exported global symbols and non-included local symbols.
40 Relocations referencing these types of symbols cannot be left in as-is
49 approach required livepatch to supply arch-specific code in order to write
53 arch-specific livepatch relocation code is replaced by a call to
67 --------
73 % modinfo livepatch-meminfo.ko
74 filename: livepatch-meminfo.ko
91 multiple functions within the same object). There is a 1-1 correspondence
136 ---------
145 **`readelf --sections` output for a patch
168 SHF_RELA_LIVEPATCH flag ("o" - for OS-specific).
170 **`readelf --relocs` output for a patch module:**
174 …Relocation section '.klp.rela.btrfs.text.btrfs_feature_attr_show' at offset 0x2ba0 contains 4 entr…
175 Offset Info Type Symbol's Value Symbol's Name + Addend
176 …0000000001f 0000005e00000002 R_X86_64_PC32 0000000000000000 .klp.sym.vmlinux.printk,0 - 4
178 …003b00000002 R_X86_64_PC32 0000000000000000 .klp.sym.btrfs.can_modify_feature.isra.3,0 - 4
179 …00000004c 0000004900000002 R_X86_64_PC32 0000000000000000 .klp.sym.vmlinux.snprintf,0 - 4
207 module->symtab.
212 "core" symbols) is made available through module->symtab (See layout_symtab()
222 …Relocation section '.klp.rela.btrfs.text.btrfs_feature_attr_show' at offset 0x2ba0 contains 4 entr…
223 Offset Info Type Symbol's Value Symbol's Name + Addend
224 …0000000001f 0000005e00000002 R_X86_64_PC32 0000000000000000 .klp.sym.vmlinux.printk,0 - 4
231 94: 0000000000000000 0 NOTYPE GLOBAL DEFAULT OS [0xff20] .klp.sym.vmlinux.printk,0
265 ---------
275 **`readelf --symbols` output for a patch module:**
282 73: 0000000000000000 0 NOTYPE GLOBAL DEFAULT OS [0xff20] .klp.sym.vmlinux.snprintf,0
283 74: 0000000000000000 0 NOTYPE GLOBAL DEFAULT OS [0xff20] .klp.sym.vmlinux.capable,0
284 75: 0000000000000000 0 NOTYPE GLOBAL DEFAULT OS [0xff20] .klp.sym.vmlinux.find_next_bit,0
285 76: 0000000000000000 0 NOTYPE GLOBAL DEFAULT OS [0xff20] .klp.sym.vmlinux.si_swapinfo,0
292 "OS" means OS-specific.
296 A livepatch module's symbol table is accessible through module->symtab.
301 module->klp_info, which is a :c:type:`klp_modinfo` struct. When a livepatch module