Home
last modified time | relevance | path

Searched refs:plt (Results 1 – 25 of 63) sorted by relevance

123

/Linux-v6.1/arch/arm/kernel/
Dmodule-plts.c36 static void prealloc_fixed(struct mod_plt_sec *pltsec, struct plt_entries *plt) in prealloc_fixed() argument
44 for (i = 0; i < ARRAY_SIZE(plt->ldr); ++i) in prealloc_fixed()
45 plt->ldr[i] = PLT_ENT_LDR; in prealloc_fixed()
47 BUILD_BUG_ON(sizeof(fixed_plts) > sizeof(plt->lit)); in prealloc_fixed()
48 memcpy(plt->lit, fixed_plts, sizeof(fixed_plts)); in prealloc_fixed()
55 struct plt_entries *plt; in get_module_plt() local
60 pltsec->plt_ent = (struct plt_entries *)pltsec->plt->sh_addr; in get_module_plt()
61 plt = pltsec->plt_ent; in get_module_plt()
63 prealloc_fixed(pltsec, plt); in get_module_plt()
66 if (plt->lit[idx] == val) in get_module_plt()
[all …]
/Linux-v6.1/drivers/net/phy/
Dphy_led_triggers.c31 struct phy_led_trigger *plt; in phy_led_trigger_change_speed() local
39 plt = phy_speed_to_led_trigger(phy, phy->speed); in phy_led_trigger_change_speed()
40 if (!plt) { in phy_led_trigger_change_speed()
47 if (plt != phy->last_triggered) { in phy_led_trigger_change_speed()
54 led_trigger_event(&plt->trigger, LED_FULL); in phy_led_trigger_change_speed()
55 phy->last_triggered = plt; in phy_led_trigger_change_speed()
68 struct phy_led_trigger *plt, in phy_led_trigger_register() argument
72 plt->speed = speed; in phy_led_trigger_register()
73 phy_led_trigger_format_name(phy, plt->name, sizeof(plt->name), suffix); in phy_led_trigger_register()
74 plt->trigger.name = plt->name; in phy_led_trigger_register()
[all …]
/Linux-v6.1/arch/riscv/kernel/
Dmodule-sections.c36 struct mod_section *plt_sec = &mod->arch.plt; in module_emit_plt_entry()
37 struct plt_entry *plt = get_plt_entry(val, plt_sec, got_plt_sec); in module_emit_plt_entry() local
40 if (plt) in module_emit_plt_entry()
41 return (unsigned long)plt; in module_emit_plt_entry()
46 plt = (struct plt_entry *)plt_sec->shdr->sh_addr; in module_emit_plt_entry()
47 plt[i] = emit_plt_entry(val, in module_emit_plt_entry()
48 (unsigned long)&plt[i], in module_emit_plt_entry()
55 return (unsigned long)&plt[i]; in module_emit_plt_entry()
102 mod->arch.plt.shdr = sechdrs + i; in module_frob_arch_sections()
109 if (!mod->arch.plt.shdr) { in module_frob_arch_sections()
[all …]
/Linux-v6.1/arch/x86/boot/compressed/
Dvmlinux.lds.S83 .got.plt (INFO) : {
84 *(.got.plt)
86 ASSERT(SIZEOF(.got.plt) == 0 ||
88 SIZEOF(.got.plt) == 0x18,
90 SIZEOF(.got.plt) == 0xc,
103 .plt : {
104 *(.plt) *(.plt.*)
106 ASSERT(SIZEOF(.plt) == 0, "Unexpected run-time procedure linkages detected!")
/Linux-v6.1/arch/loongarch/kernel/
Dmodule-sections.c39 struct mod_section *plt_sec = &mod->arch.plt; in module_emit_plt_entry()
41 struct plt_entry *plt = get_plt_entry(val, plt_sec, plt_idx_sec); in module_emit_plt_entry() local
44 if (plt) in module_emit_plt_entry()
45 return (Elf_Addr)plt; in module_emit_plt_entry()
50 plt = (struct plt_entry *)plt_sec->shdr->sh_addr; in module_emit_plt_entry()
51 plt[nr] = emit_plt_entry(val); in module_emit_plt_entry()
59 return (Elf_Addr)&plt[nr]; in module_emit_plt_entry()
114 mod->arch.plt.shdr = sechdrs + i; in module_frob_arch_sections()
123 if (!mod->arch.plt.shdr) { in module_frob_arch_sections()
155 mod->arch.plt.shdr->sh_type = SHT_NOBITS; in module_frob_arch_sections()
[all …]
Dvmlinux.lds.S59 .plt : ALIGN(16) { *(.plt) }
60 .got.plt : ALIGN(16) { *(.got.plt) }
/Linux-v6.1/arch/arm64/kernel/
Dmodule-plts.c27 struct plt_entry plt; in get_plt_entry() local
34 plt = __get_adrp_add_pair(dst, (u64)pc, AARCH64_INSN_REG_16); in get_plt_entry()
35 plt.br = cpu_to_le32(br); in get_plt_entry()
37 return plt; in get_plt_entry()
79 struct plt_entry *plt = (struct plt_entry *)sechdrs[pltsec->plt_shndx].sh_addr; in module_emit_plt_entry() local
84 if (is_forbidden_offset_for_adrp(&plt[i].adrp)) in module_emit_plt_entry()
87 plt[i] = get_plt_entry(val, &plt[i]); in module_emit_plt_entry()
94 if (j >= 0 && plt_entries_equal(plt + i, plt + j)) in module_emit_plt_entry()
95 return (u64)&plt[j]; in module_emit_plt_entry()
101 return (u64)&plt[i]; in module_emit_plt_entry()
[all …]
Dvmlinux.lds.S181 .got.plt : { *(.got.plt) }
182 ASSERT(SIZEOF(.got.plt) == 0 || SIZEOF(.got.plt) == 0x18,
322 .plt : {
323 *(.plt) *(.plt.*) *(.iplt) *(.igot .igot.plt)
325 ASSERT(SIZEOF(.plt) == 0, "Unexpected run-time procedure linkages detected!")
Dftrace.c69 struct plt_entry *plt = mod->arch.ftrace_trampolines; in get_ftrace_plt() local
72 return &plt[FTRACE_PLT_IDX]; in get_ftrace_plt()
75 return &plt[FTRACE_REGS_PLT_IDX]; in get_ftrace_plt()
95 struct plt_entry *plt; in ftrace_find_callable_addr() local
130 plt = get_ftrace_plt(mod, *addr); in ftrace_find_callable_addr()
131 if (!plt) { in ftrace_find_callable_addr()
136 *addr = (unsigned long)plt; in ftrace_find_callable_addr()
/Linux-v6.1/arch/um/kernel/
Duml.lds.S59 .rel.plt : {
60 *(.rel.plt)
65 .rela.plt : {
66 *(.rela.plt)
97 .got : { *(.got.plt) *(.got) }
Ddyn.lds.S57 .rel.plt : {
58 *(.rel.plt)
63 .rela.plt : {
64 *(.rela.plt)
72 .plt : { *(.plt) }
158 .got : { *(.got.plt) *(.got) }
/Linux-v6.1/arch/riscv/include/asm/
Dmodule.h22 struct mod_section plt; member
64 unsigned long plt, in emit_plt_entry() argument
79 unsigned long offset = got_plt - plt; in emit_plt_entry()
104 struct plt_entry *plt = (struct plt_entry *)sec_plt->shdr->sh_addr; in get_plt_entry() local
107 return plt + got_plt_idx; in get_plt_entry()
Dmodule.lds.h5 .plt : { BYTE(0) }
7 .got.plt : { BYTE(0) }
/Linux-v6.1/arch/ia64/kernel/
Dmodule.c235 patch_plt (struct module *mod, struct plt_entry *plt, long target_ip, unsigned long target_gp) in patch_plt() argument
237 if (apply_imm64(mod, (struct insn *) (plt->bundle[0] + 2), target_gp) in patch_plt()
238 && apply_imm60(mod, (struct insn *) (plt->bundle[1] + 2), in patch_plt()
239 (target_ip - (int64_t) plt->bundle[1]) / 16)) in patch_plt()
245 plt_target (struct plt_entry *plt) in plt_target() argument
247 uint64_t b0, b1, *b = (uint64_t *) plt->bundle[1]; in plt_target()
254 return (long) plt->bundle[1] + 16*off; in plt_target()
285 patch_plt (struct module *mod, struct plt_entry *plt, long target_ip, unsigned long target_gp) in patch_plt() argument
287 if (apply_imm64(mod, (struct insn *) (plt->bundle[0] + 2), target_ip) in patch_plt()
288 && apply_imm64(mod, (struct insn *) (plt->bundle[1] + 2), target_gp)) in patch_plt()
[all …]
/Linux-v6.1/arch/x86/kernel/
Dvmlinux.lds.S440 .got.plt (INFO) : { *(.got.plt) }
441 ASSERT(SIZEOF(.got.plt) == 0 ||
443 SIZEOF(.got.plt) == 0x18,
445 SIZEOF(.got.plt) == 0xc,
458 .plt : {
459 *(.plt) *(.plt.*) *(.iplt)
461 ASSERT(SIZEOF(.plt) == 0, "Unexpected run-time procedure linkages detected!")
/Linux-v6.1/arch/arm64/kernel/vdso/
Dvdso.lds.S65 *(.got.plt)
66 *(.plt)
67 *(.plt.*)
69 *(.igot .igot.plt)
/Linux-v6.1/arch/arm64/kernel/vdso32/
Dvdso.lds.S42 *(.got.plt)
43 *(.plt)
46 *(.igot.plt)
/Linux-v6.1/arch/arm/include/asm/
Dmodule.lds.h4 .plt : { BYTE(0) }
5 .init.plt : { BYTE(0) }
/Linux-v6.1/arch/loongarch/include/asm/
Dmodule.lds.h6 .plt : { BYTE(0) }
7 .plt.idx : { BYTE(0) }
Dmodule.h21 struct mod_section plt; member
83 struct plt_entry *plt = (struct plt_entry *)sec_plt->shdr->sh_addr; in get_plt_entry() local
88 return plt + plt_idx; in get_plt_entry()
/Linux-v6.1/arch/arm64/include/asm/
Dmodule.lds.h3 .plt 0 : { BYTE(0) }
4 .init.plt 0 : { BYTE(0) }
/Linux-v6.1/arch/ia64/include/asm/
Dmodule.lds.h10 .core.plt : { BYTE(0) }
11 .init.plt : { BYTE(0) }
/Linux-v6.1/arch/nios2/boot/compressed/
Dvmlinux.lds.S28 *(.got.plt)
29 *(.igot.plt)
/Linux-v6.1/arch/nios2/kernel/
Dvmlinux.lds.S36 *(.got.plt)
37 *(.igot.plt)
/Linux-v6.1/arch/powerpc/kernel/
Dvmlinux.lds.S163 *(.got.plt)
165 .plt : AT(ADDR(.plt) - LOAD_OFFSET) {
167 *(.plt)
413 *(.glink .iplt .plt .rela* .comment)

123